method
empty?
v4.2.7 -
Show latest stable
- Class:
ActiveModel::Errors
empty?()public
Returns true if no errors are found, false otherwise. If the error message is a string it can be empty.
person.errors.full_messages # => ["name cannot be nil"] person.errors.empty? # => false