reset_password_instruction.html
<p><%= t('.greeting', :recipient => @resource.email, :default => "Hello #{@resource.email}!") %></p>
<p><%= t('.instruction', :default => "Someone has requested a link to change your password, and you can do this through the link below.") %></p>
<p><%= link_to t('.action', :default => "Change my password" %></p>
<p><%= t('.instruction_2', :default => "If you didn't request this, please ignore this email.") %></p>
<p><%= t('.instruction_3', :default => "Your password won't change until you access the link above and create a new one.") %></p>
答案 0 :(得分:0)
<p><%= link_to t('.action', :default => "Change my password") %></p>
应该是:
<p><%= link_to t('.action', :default => "Change my password"), edit_password_url(@resource, reset_password_token: @token) %></p>
您没有在HTML代码中正确传递网址。所以你的代码中有空白的href。