Flowdock
full_message(attribute, message) public

Returns a full message for a given attribute.

person.errors.full_message(:name, 'is invalid') # => "Name is invalid"

The `“%{attribute} %{message}”` error format can be overridden with either

  • activemodel.errors.models.person/contacts/addresses.attributes.street.format

  • activemodel.errors.models.person/contacts/addresses.format

  • activemodel.errors.models.person.attributes.name.format

  • activemodel.errors.models.person.format

  • errors.format

Show source
Register or log in to add new notes.