ruby-on-rails – rails 3设计:如何在语言环境文件中更改flash消息?

ruby-on-rails – rails 3设计:如何在语言环境文件中更改flash消息?,第1张

概述我的rails 3应用程序使用设计,我们设置它,以便用户通过电子邮件发送确认令牌. 一旦用户注册,设置’闪烁’以下提示我需要更改: You have signed up successfully. However, we could not sign you in because your account is unconfirmed. 此消息不在devise.en.yaml文件中… 有谁知道如 我的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}.'
总结

以上是内存溢出为你收集整理的ruby-on-rails – rails 3设计:如何在语言环境文件中更改flash消息?全部内容,希望文章能够帮你解决ruby-on-rails – rails 3设计:如何在语言环境文件中更改flash消息?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/langs/1282444.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-09
下一篇2022-06-09

发表评论

登录后才能评论

评论列表(0条)

    保存