Flowdock
method

added?

Importance_1
v3.2.13 - Show latest stable - 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.

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