to_a()
Instance Public methods
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"]
Please login to continue.