We use the standard version of the forgotten password:
<p>Hello <%= @resource.email %>!</p> <p>Someone has requested a link to change your password, and you can do this through the link below.</p> <p><%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %></p>
During production, this generates a localhost URL for Change Password:
http://localhost:3000/users/password/edit?reset_password_token=amqs2q9NcM1FerHKhmzV
This is strange if the production.rb file has our domain:
config.action_mailer.default_url_options = { :host => 'mysite.com' }
Why is mysite.com not used in the URL? Ideas?
thanks
Anapprentice
source share