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

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