0

I am trying to send forgot password instruction via email and my slim template for email body contains below line

= link_to "Reset password", edit_password_url('@user.reset_password_token', email: @user.email)

And its showing error while sending mail. enter image description here

Nima
  • 3,309
  • 6
  • 27
  • 44
Ninja
  • 428
  • 4
  • 17

1 Answers1

1

You should try this:

edit_user_password_url(reset_password_token: @user.reset_password_token, email: @user.email)

edit_password_url is really devise helper, not router http://www.rubydoc.info/github/plataformatec/devise/master/Devise/Controllers/UrlHelpers

Alex Kojin
  • 5,044
  • 2
  • 29
  • 31