Ruby on rails 4 自定义设备已注册但未确认的消息

Ruby on rails 4 自定义设备已注册但未确认的消息,ruby-on-rails-4,devise,Ruby On Rails 4,Devise,实际上我想定制已注册的消息,但是消息是未确认的 A message with a confirmation link has been sent to your email address. Please follow the link to activate your account. 我想在邮件中添加一个用户电子邮件id。我想要下面的消息 A message with a confirmation link has been sent to abc@example.com .Please

实际上我想定制已注册的消息,但是消息是未确认的

A message with a confirmation link has been sent to your email address. Please follow the link to activate your account.
我想在邮件中添加一个用户电子邮件id。我想要下面的消息

A message with a confirmation link has been sent to abc@example.com .Please follow the link to activate your account.

如何自定义这些错误消息?

我认为您可以覆盖Desive的
en.yml

将其复制到
config/locales/designe.en.yml
,在那里找到

signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
并将其更改为:

signed_up_but_unconfirmed: "A message with a confirmation link has been sent to %{resource.email}. Please follow the link to activate your account."

事实上我这样做了,但它不起作用。它向我显示带有确认链接的消息已发送到%{resource.email}。请按照链接激活您的帐户。。它没有显示实际的电子邮件地址…@DeeptiKakade-Hm,这很奇怪。这里也一样。它不是用实际值替换变量。