I'm using Devise authentication gem with Rails.
How to display the message from devise.en.yml:
send_instructions: 'You will receive an email with instructions about how to reset your password in a few minutes'
after password recovery e-mail has been sent, instead of being redirected to site's root?
Update:
I've found an interesting piece of code in devise_controller.rb:
def successfully_sent?(resource)
notice = if Devise.paranoid
resource.errors.clear
:send_paranoid_instructions
elsif resource.errors.empty?
:send_instructions
end
if notice
set_flash_message :notice, notice if is_navigational_format?
true
end
end
Setting breakpoints shows that the right lines are being called, :send_instructions is assigned to notice , set_flash_message is called, but I cannot see the result of all this because I am immediately redirected to root path.