ruby on rails - How do I redirect devise sign_in path to a different controller and view? Note:This is before the authentication happens -
right in app users can sign in @ /users/sign_in
. rather have them sign in , sign @ same place have view created @ /home/all
. being said, how make sure every time users go /users/sign_in
or /users/sign_up
redirect /home/all
?
thanks
you can overriding devise's default route,
"/users/sign_up" => 'home#all' "/users/sign_in" => 'home#all'
write lines in routes file before, devise_for :users.
whenever request comes /users/sign_up/ or /users/sign_in/, handled home#all
Comments
Post a Comment