class Hq::SessionsController < Devise::SessionsController layout 'login' private # Overwriting the sign_out redirect path method def after_sign_in_path_for(resource_or_scope) hq_root_path end # Overwriting the sign_out redirect path method def after_sign_out_path_for(resource_or_scope) new_admin_session_path end end