体验新版 GitCode,发现更多精彩内容 >>
class ConfirmationsController < Devise::ConfirmationsController protected def after_confirmation_path_for(resource_name, resource) if signed_in?(resource_name) signed_in_root_path(resource) else sign_in(resource) if signed_in?(resource_name) signed_in_root_path(resource) else new_session_path(resource_name) end end end end