0

验证规则示例:

  validates :first_name, :presence => {:message => I18n.t('activerecord.errors.models.user.required_item')}, :allow_blank => true, :length => {:minimum => 3, :maximum => 40}

语言环境:

de:
  activerecord:
      errors:
        models:
          user:
            povinne_pole:
              required_item: "error message" # see default key: "inclusion"

退货

[object Object]

我究竟做错了什么?

4

1 回答 1

1

povinne_pole在 I18n.t 通话中失踪了。

于 2012-09-18T20:22:30.967 回答