rails 3 + devise:如何在语言环境文件中更改flash消息?

jpw*_*ynn 4 ruby-on-rails devise

我的rails 3应用程序使用设计,我们设置它,以便用户通过电子邮件发送确认令牌.

一旦用户注册,设置'闪烁'以下提示我需要更改:

You have signed up successfully. However, we could not 
sign you in because your account is unconfirmed.
Run Code Online (Sandbox Code Playgroud)

此消息不在devise.en.yaml文件中...

有谁知道如何更改此Flash消息?

Zab*_*bba 7

尝试添加inactive_signed_upconfig/locales/devise.en.yml:

en:
  devise:
    registrations:
      inactive_signed_up: 'You have signed up successfully. However, we could not sign you in because your account is %{reason}.'
Run Code Online (Sandbox Code Playgroud)

  • 这*真的*应该在他们的维基上.搜索源代码是不可接受的文档. (2认同)