class User::SessionsController < Devise::SessionsController # layout 'user/login' private # Overwriting the sign_out redirect path method def after_sign_in_path_for(resource_or_scope) user_root_path end # Overwriting the sign_out redirect path method def after_sign_out_path_for(resource_or_scope) new_user_session_path end end