Answer the question
In order to leave comments, you need to log in
Devise: Why in production, when I click on a link from a password recovery email, I get an error, there is no such page?
Hello, I use Devise.
When you click on the Forgot your password? link, an email is sent, when you click on the link in the email - Change my password, in the dev environment a page with a password change opens, and in production there is an error - there is no such page.
Intuitively, I assume that in production, something with a reset_pasword_token, but I don’t understand what exactly to do (
Answer the question
In order to leave comments, you need to log in
There was a line in the config/environments/production.rb file
:
config.action_mailer.default_url_options = { host: 'xxx.xxx.xxx.xxx' }
changed to:
config.action_mailer.default_url_options = { host: 'my_sait.ru' }
Everything earned)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question