パスワードのリセットをリクエストすると、パスワードのリセット メッセージとリンクのない空白のメッセージが表示されます。私は使っているdevise
これが私のパスワードコントローラーです:
class PasswordsController < Devise::PasswordsController
def create
self.resource = resource_class.send_reset_password_instructions(resource_params)
respond_with({}, :location => after_sending_reset_password_instructions_path_for(resource_name))
end
end
登録コントローラー:
class RegistrationsController < Devise::RegistrationsController
def create
if verify_recaptcha
super
else
build_resource
clean_up_passwords(resource)
render :new
end
end
end
ルート.rb:
devise_for :users, controllers: { passwords: 'passwords' }
devise_for :users, :path_names=> {:sign_in=> "login", :sign_out=> "logout"},
:controllers => { :registrations => 'registrations' }