在您的ApplicationController中尝试这个(将new_user_session_path替换为您选择的路径) private def after_sign_out_path_for(resource_or_scope) new_user_session_path end