Flowdock
method

empty?

Importance_1
Ruby on Rails latest stable (v5.2.3) - 0 notes - 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
Show source
Register or log in to add new notes.