empty?()
Instance Public methods
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
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
Please login to continue.