Flowdock
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 # => ["name can't be blank", "name must be specified"]
Show source
Register or log in to add new notes.