add_on_empty(attributes, options = {})
Instance Public methods
Will add an error message to each of the attributes in
attributes that is empty.
person.errors.add_on_empty(:name)
person.errors.messages
# => {:name=>["can't be empty"]}
Will add an error message to each of the attributes in
attributes that is empty.
person.errors.add_on_empty(:name)
person.errors.messages
# => {:name=>["can't be empty"]}
Please login to continue.