wish help you to fix your issue 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 ? , try this. It should works. ;)
# change :devise_model to :user, or :admin or any name of your devise model
devise_scope :devise_model do
get '/login' => "devise/sessions#new"
link_to 'Login', login_url
How do I redirect devise sign_in path to a different controller and view? Note:This is before the authentication happens
Hope that helps right now in my app users can sign in at /users/sign_in . But I would rather have them sign in and sign up at a same place so i have a view already created at /home/all. That being said, how do I make sure that every time users go to /users/sign_in or /users/sign_up they are redirect to /home/all ? , You can do this by overriding the devise's default route,
get "/users/sign_up" => 'home#all'
get "/users/sign_in" => 'home#all'
After user Sign In, why Devise redirect to sign_in view instead of specified path?
Any of those help I have a problem with Devise redirect. By default after user sign in and sign up it will be redirect toroot_path. I want to change that path to playlists_path. , By executing these operation: