Flowdock
method

to_a

Importance_1
Ruby on Rails latest stable (v4.1.8) - 0 notes - Class: ActiveModel::Errors
to_a() public

Returns an array of error messages, with the attribute name included.

person.errors.add(:name, "can't be blank")
person.errors.add(:name, "must be specified")
person.errors.to_a # => ["name can't be blank", "name must be specified"]
Show source
Register or log in to add new notes.