Forum: Ruby on Rails Localization problem in nested-attributes validation

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Benjamin M. (Guest)
on 2009-04-08 15:56
(Received via mailing list)

I recently run into a problem with the new feature for activerecord:
nested attributes. When the nested object (Activist) is invalid, the
error messages are shown, but the object name is noch translated. (My
project is in german)
So I get int the error box:

"Bitte überprüfen Sie die folgenden Felder:

    * Activist surename muss ausgefüllt werden
    * Activist city muss ausgefüllt werden"

In my appropriate localization file (de.yml) I defined the object/
attributes names correctly.

      protest_mail: Protestmail
      activist: Aktivistin
        subject: Betreff
        body: Inhalt
        surename: Nachname
        city: Stadt

The error messages for protest_mail are transalated correctly, so I
guess, the problems applies to the new nested-attributes feature.

Any idea how to fix this?

best regards,
This topic is locked and can not be replied to.