Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Padrino clobbers ActiveModel error messages in I18n locales #1701
ActiveModel permits one to specify error messages in locales using one of a number of keys. For example, this will provide an error message for presence validations:
However, when you do this in Padrino, you won't see this error message appear during validations. Instead, the original default is used.
It turns out that this may be because padrino-admin is clobbering the messages by loading its own locale data first, even if you aren't using padrino-admin at all.
We had an IRC conversation on the issue which you can see here.
The expected behavior for me is that: