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

Popular posts from this blog

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -