Re: [Rails] Login form that is not root URL?
Hi!
You can use a before filter in your controller.
Look at this example:
Best Regards,
Everaldo
-- On Sun, Oct 16, 2011 at 10:20 PM, xscribe@gmail.com <xscribe@gmail.com> 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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home