Add this to your routes. rb
devise_scope :user do root :to => 'devise/sessions#new' end
but at the same time, after logging in, you can get stuck in an endless loop error, so itโs better to add it after logging in and leaving the path in your application controller, overriding development methods
def after_sign_in_path_for(resource_or_scope)
It will work!
RSB Nov 08 '13 at 9:49 am
source share