对不起,我找不到我的错误。这是我的 registrations_controller.rb 代码:
class RegistrationsController < Devise::RegistrationsController
protected
def after_sign_up_path_for(resource)
edit_user_registration_path(current_user)
end
end
在我的路线中:
devise_for :users, :controllers => { :registrations => "registrations" }
并且重定向不起作用...