Flowdock
method

count

Importance_1
count() public

Returns the number of error messages.

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