Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

gyardley's Profile

GitHub User: gyardley

Comments by

Avatar

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:

ruby
en:
  activemodel:
    errors:
      models:
        lookup_form:
          attributes:
            plate:
              blank: "Needs a license plate"
            region:
              blank: "Needs a state"