to_a()
public
Returns an array of error messages, with the attribute name included
p.errors.add(:name, "can't be blank")
p.errors.add(:name, "must be specified")
p.errors.to_a
# File activemodel/lib/active_model/errors.rb, line 163
def to_a
full_messages
end