【发布时间】:2012-03-05 14:28:12
【问题描述】:
我已经通过这种方式重新定义了 ActiveRecord 模型的名称
activerecord:
attributes:
user:
email: "<b>Custom email</b>"
password: "<b>Custom password</b>"
我想在我的浏览器中得到这样的输出:
“自定义邮箱不能为空
但得到
<b>Custom email</b> must be not empty
我该如何解决?
谢谢!
【问题讨论】:
标签: ruby-on-rails activerecord customization