Flowdock
method

empty?

Importance_1
Ruby on Rails latest stable (v4.0.2) - 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 can not be nil"]
person.errors.empty?        # => false
Show source
Register or log in to add new notes.