一个应用现在有 devise_for :users 和 devise_for :admins 注销 users 账户的时候跳转到默认的 root gitHub 上是在 class ApplicationController < ActionController::Base private # Overwriting the sign_out redirect path method def after_sign_out_path_for(resource_or_scope) root_path end end
我需要把 after_sign_out_path_for 放在哪儿?我新建了 user/registrations 和 user/sessions