ruby-on-rails – rails 3设计:如何在语言环境文件中更改flash
发布时间:2020-12-17 02:41:40 所属栏目:百科 来源:网络整理
导读:我的rails 3应用程序使用设计,我们设置它,以便用户通过电子邮件发送确认令牌. 一旦用户注册,设置’闪烁’以下提示我需要更改: You have signed up successfully. However,we could not sign you in because your account is unconfirmed. 此消息不在devise.
我的rails 3应用程序使用设计,我们设置它,以便用户通过电子邮件发送确认令牌.
一旦用户注册,设置’闪烁’以下提示我需要更改: You have signed up successfully. However,we could not sign you in because your account is unconfirmed. 此消息不在devise.en.yaml文件中… 有谁知道如何更改此Flash消息? 解决方法
尝试在config / locales / devise.en.yml中添加inactive_signed_up:
en: devise: registrations: inactive_signed_up: 'You have signed up successfully. However,we could not sign you in because your account is %{reason}.' (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |