forked from heartcombo/devise
-
Notifications
You must be signed in to change notification settings - Fork 0
How To: Redirect URL after sending reset password instructions
Eduardo Gurgel edited this page Jul 16, 2013
·
2 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" }