add(attribute, message = :invalid, options = {})
Instance Public methods
Adds message to the error messages on attribute.
More than one error can be added to the same attribute. If no
message is supplied, :invalid is assumed.
person.errors.add(:name)
# => ["is invalid"]
person.errors.add(:name, 'must be implemented')
# => ["is invalid", "must be implemented"]
person.errors.messages
# => {:name=>["must be implemented", "is invalid"]}
If message is a symbol, it will be