method
on
v1.2.6 -
Show latest stable
- Class:
ActiveRecord::Errors
on(attribute)public
- Returns nil, if no errors are associated with the specified attribute.
- Returns the error message, if one error is associated with the specified attribute.
- Returns an array of error messages, if more than one error is associated with the specified attribute.