Notes posted by shadow11

RSS feed
July 18, 2013 - (v3.2.1 - v3.2.13)
0 thanks

Nested i18n attributes

If you want to use nested attributes in a i18n file (like person :has_many => :addresses), write:

en:
  activerecord:
    attributes:
      person:
        name:
      "person/addresses":
        street: "Street name"
      "person/phones":
        area: "Area code"
        number: Number