RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: gyardley
Include the error messages in your YAML under activemodel, not activerecord.
For my LookupForm form object, I've got some YAML that looks like this:
LookupForm
en: activemodel: errors: models: lookup_form: attributes: plate: blank: "Needs a license plate" region: blank: "Needs a state"
Include the error messages in your YAML under activemodel, not activerecord.
For my
LookupForm
form object, I've got some YAML that looks like this: