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@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.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedOct 17, '11 at 12:20a
activeOct 17, '11 at 1:02a
posts2
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Everaldo Gomes: 1 post Xscribe: 1 post

People

Translate

site design / logo © 2021 Grokbase