-
Notifications
You must be signed in to change notification settings - Fork 5.5k
How To: Redirect URL after sending reset password instructions
Lee Dykes edited this page Nov 9, 2017
·
4 revisions
Source: http://stackoverflow.com/questions/8809681/cannot-override-devise-passwords-controller
You'll have to create a PasswordsController in your app that inherits from Devise::PasswordsController, implement only the after_sending_reset_password_instructions_path_for(resource_name) method and when setting the routes tell devise to use your controller
class PasswordsController < Devise::PasswordsController
protected
def after_sending_reset_password_instructions_path_for(resource_name)
#return your path
end
end
devise_for :users, controllers: { passwords: 'passwords' }