我在我的应用程序中使用设计进行身份验证。当用户注册时,会向用户发送一封确认电子邮件,上面写着
Welcome user@gmail.com !
You can confirm your account email through the link below:
Confirm my account
但我想显示用户名而不是电子邮件。我该如何实施?请帮忙。我和我一起设计了viewws。但它使用@email
实例变量来显示电子邮件。它在哪里定义?帮助将不胜感激。
<p>Welcome <%= @email %>!</p>
<p>You can confirm your account email through the link below:</p>
<p><%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @token) %></p>