Rails create login page

48 views
Skip to first unread message

Duong vong veasna

unread,
May 22, 2014, 4:40:38 AM5/22/14
to rubyonra...@googlegroups.com
Dear all rails developers,

I want to create a login page.
Could any one show me how to create a signup and signin pages.
i have try follow many websites but i can not do it.
please help me, thanks,

veasna

Colin Law

unread,
May 22, 2014, 5:24:50 AM5/22/14
to rubyonra...@googlegroups.com
I assume that you are a beginner to Rails and therefore suggest
working right through a good tutorial such as railstutorial.org (which
is free to use online). This includes a user login/logout.

Also there are several good gems that will make this easy, such as
Devise. However, first do work through that tutorial as that will
show you the basics of rails.

Colin

Antônio Augusto Sousa Britto

unread,
May 22, 2014, 12:53:21 PM5/22/14
to rubyonra...@googlegroups.com
I suggest read/study about authentication a little before starting using gems like 'Devise'.


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/13d8ab60-f2c4-4302-b876-18ad468661f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Att, Antônio Augusto de Sousa Britto - 43ª turma de Ciência da Computação - UFU

Duong vong veasna

unread,
May 22, 2014, 9:15:36 PM5/22/14
to rubyonra...@googlegroups.com
Thanks Colin
I will try it.

Duong vong veasna

unread,
May 22, 2014, 9:17:00 PM5/22/14
to rubyonra...@googlegroups.com
Thanks Antônio Augusto Sousa Britto
I will try it.

Duong vong veasna

unread,
May 23, 2014, 2:57:22 AM5/23/14
to rubyonra...@googlegroups.com
Dear Mr. Colin

I have completed create log_in page.
After log_in successfully i want to link to my page that  i have create it in user folder.
so could you show me how to do.
thanks.

veasna


On Thursday, May 22, 2014 2:24:50 AM UTC-7, Colin Law wrote:

Colin Law

unread,
May 23, 2014, 3:33:48 AM5/23/14
to rubyonra...@googlegroups.com
On 23 May 2014 07:57, Duong vong veasna <veasna...@gmail.com> wrote:
> Dear Mr. Colin
>
> I have completed create log_in page.
> After log_in successfully i want to link to my page that i have create it
> in user folder.
> so could you show me how to do.
> thanks.

Have you worked right through the tutorial I suggested? If you do
that you will certainly know how to answer your own question (and also
a hundred other questions that you will need to know the answers to).

Colin

>
> veasna
>
>
> On Thursday, May 22, 2014 2:24:50 AM UTC-7, Colin Law wrote:
>>
>> On 22 May 2014 09:40, Duong vong veasna <veasna...@gmail.com> wrote:
>> > Dear all rails developers,
>> >
>> > I want to create a login page.
>> > Could any one show me how to create a signup and signin pages.
>> > i have try follow many websites but i can not do it.
>> > please help me, thanks,
>>
>> I assume that you are a beginner to Rails and therefore suggest
>> working right through a good tutorial such as railstutorial.org (which
>> is free to use online). This includes a user login/logout.
>>
>> Also there are several good gems that will make this easy, such as
>> Devise. However, first do work through that tutorial as that will
>> show you the basics of rails.
>>
>> Colin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/d21b5d3d-4b8f-4e83-995c-ae09fff52234%40googlegroups.com.

Duong vong veasna

unread,
May 23, 2014, 5:07:54 AM5/23/14
to rubyonra...@googlegroups.com
Yes, it work when i register then i'm log_in when success it redirect to sign_up page, so i want when log_in success redirect to my page.
i use this command  "redirect_to root_url('users/home'), :notice => "Logged In!""
it not run my home page. could you tell me why?
thanks you.

veasna

Colin Law

unread,
May 23, 2014, 5:19:34 AM5/23/14
to rubyonra...@googlegroups.com
On 23 May 2014 10:07, Duong vong veasna <veasna...@gmail.com> wrote:
> Yes, it work when i register then i'm log_in when success it redirect to
> sign_up page, so i want when log_in success redirect to my page.
> i use this command "redirect_to root_url('users/home'), :notice => "Logged
> In!""
> it not run my home page. could you tell me why?

One of the things you would have learnt if you worked through the
tutorial is how to work out what is going wrong. For instance to look
in log/development.log to get more information about what is
happening. Please work through the tutorial so you will not be
embarrassed when you look back through these questions later and
wonder why you needed to ask for help.

Colin
> https://groups.google.com/d/msgid/rubyonrails-talk/6822f8ff-e541-483f-ab3a-c399f19bff76%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages