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, [email protected] <[email protected]>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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to