diff options
author | Eileen M. Uchitelle <eileencodes@gmail.com> | 2015-11-09 07:31:56 -0500 |
---|---|---|
committer | Eileen M. Uchitelle <eileencodes@gmail.com> | 2015-11-09 07:31:56 -0500 |
commit | 16214d1108c31174c94503caced3855b0f6bad95 (patch) | |
tree | ecdc6afc1a0d045175563c7c79ecde860e264a87 /guides/source/i18n.md | |
parent | 823d3a8de0ccfe2301e51ac1e06e106035edb8e6 (diff) | |
parent | 981fa97320e68b768e1b080d168696c6446a4563 (diff) | |
download | rails-16214d1108c31174c94503caced3855b0f6bad95.tar.gz rails-16214d1108c31174c94503caced3855b0f6bad95.tar.bz2 rails-16214d1108c31174c94503caced3855b0f6bad95.zip |
Merge pull request #22155 from jcoleman/patch-1
Clarify i18n active[model/record] key differences
Diffstat (limited to 'guides/source/i18n.md')
-rw-r--r-- | guides/source/i18n.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/i18n.md b/guides/source/i18n.md index 87d2fafaf3..8381636196 100644 --- a/guides/source/i18n.md +++ b/guides/source/i18n.md @@ -805,6 +805,8 @@ en: Then `User.human_attribute_name("gender.female")` will return "Female". +NOTE: If you are using a class which includes `ActiveModel` and does not inherit from `ActiveRecord::Base`, replace `activerecord` with `activemodel` in the above key paths. + #### Error Message Scopes Active Record validation error messages can also be translated easily. Active Record gives you a couple of namespaces where you can place your message translations in order to provide different messages and translation for certain models, attributes, and/or validations. It also transparently takes single table inheritance into account. |