count()
Instance Public methods
Returns the number of error messages.
person.errors.add(:name, "can't be blank") person.errors.count # => 1 person.errors.add(:name, "must be specified") person.errors.count # => 2
Returns the number of error messages.
person.errors.add(:name, "can't be blank") person.errors.count # => 1 person.errors.add(:name, "must be specified") person.errors.count # => 2
Please login to continue.