I am creating a rails app. And i have login in such a way that, users are directed or redirect to /login for signing in. And when users/sign_in is passed the it embeds the sign in form into the application layout which i don’t want users to see. Is there a way i can redirect users/sign_in to /login or restrict access to it ?
thanks
try this. It should works. 😉
and you can use this in view like this.
PS. if you have override devise controller. You should tell the router first, and change devise controller to your override controller name.
go to this link and see Configuring controllers content.