xscribe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2011-Oct-17 00:20 UTC
Login form that is not root URL?
I''d like to have an unauthenticated user be directed to the Login form (with no other access to the application), then only after they successfully login, they get redirected to the root url of the application. How do I do this? Thanks, Per -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi! You can use a before filter in your controller. Look at this example: http://ruby.railstutorial.org/chapters/updating-showing-and-deleting-users#sec:requiring_signed_in_users Best Regards, Everaldo On Sun, Oct 16, 2011 at 10:20 PM, xscribe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <xscribe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> I''d like to have an unauthenticated user be directed to the Login form > (with no other access to the application), then only after they > successfully login, > they get redirected to the root url of the application. > > > How do I do this? > > Thanks, > > Per > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.