A
A
Art Snail2017-08-21 12:48:39
Ruby on Rails
Art Snail, 2017-08-21 12:48:39

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

2 answer(s)
A
Art Snail, 2017-08-22
@artsnail

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)

I guess you don't have such a page

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question