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
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:
Best Regards,
Everaldo