Flowdock
method

size

Importance_1
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.