Flowdock
method

added?

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActiveModel::Errors
added?(attribute, message = nil, options = {}) public

Returns true if an error on the attribute with the given message is present, false otherwise. message is treated the same as for add.

person.errors.add :name, :blank
person.errors.added? :name, :blank # => true
Show source
Register or log in to add new notes.