instance method
errors
Ruby on Rails 3.2.22.5
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 185
def errors
@errors ||= Errors.new(self)
end
Defined in activemodel/lib/active_model/validations.rb line 185
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Validations