I have an array of hashes from which I need the values of the hashes in a new array. The array of hashes look likes this, with a couple thousand of them.
array =
a=[{:code=>"404"}, {:code=>"302"}, {:code=>"200"}] puts a.map{|x|x.values}.flatten.inspect
output
["404", "302", "200"]