added?(attribute, message = :invalid, options = {})
Instance Public methods
Returns true
if an error on the attribute with the given
message is present, false
otherwise. message
is
treated the same as for add
.
1 2 | person.errors.add :name , :blank person.errors.added? :name , :blank # => true |
Please login to continue.