Flowdock
method

size

Importance_1
Ruby on Rails latest stable (v4.1.8) - 0 notes - Class: ActiveModel::Errors
size() public

Returns the number of error messages.

person.errors.add(:name, "can't be blank")
person.errors.size # => 1
person.errors.add(:name, "must be specified")
person.errors.size # => 2
Show source
Register or log in to add new notes.