instance method
errors
Ruby on Rails 3.0.20
Since v2.2.3Signature
errors()
Returns the Errors object that holds all information about attribute error messages.
Source
# File activemodel/lib/active_model/validations.rb, line 169
def errors
@errors ||= Errors.new(self)
end
Defined in activemodel/lib/active_model/validations.rb line 169
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Validations