【发布时间】:2020-05-21 06:31:02
【问题描述】:
我正在通过默认的设计密码重置说明电子邮件发送密码重置说明。当我单击更改密码时,它会将我路由到本地计算机中的 localhost:3000,但在生产中它会路由到某个 ip。我认为是我们托管的云服务器,如何将其更改为域名?
这是设计密码重置说明:
<p>Hello <%= @resource.email %>!</p>
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
<p><%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p>
<p>If you didn't request this, please ignore this email.</p>
<p>Your password won't change until you access the link above and create a new one.</p>
如何更改此设置我必须将 url 硬编码为域?因为我们有一个暂存和生产环境。
【问题讨论】:
标签: ruby-on-rails devise