From: Nate Leavitt Date: 2008-07-15T06:22:23+09:00 Subject: array of hashes (finding value) I'm just looking for other possible solutions. Sorry, this is kinda a noob question. Currently I loop through the array and check the value of each hash key to find values. Is that the only and/or best way to find matches? example: @invoices = [{:id => 1, :first_name => 'nate'}, {:id => 2, :fist_name => 'greg'}, {:id => 3, :first_name =>}] @invoices.each do |invoice| if invoice[:id] == params[:contact_id] bla... bla... end end -- Posted via http://www.ruby-forum.com/.