From: sto.mar@... Date: 2013-06-30T04:01:13+09:00 Subject: Re: Find elment in array of hashes Am 29.06.2013 18:05, schrieb Rodrigo Lueneberg: > Thanks, > > Just to conclude my approach. > > hash symbol did not work with select_all method > results = @selectedProductsArray.find {|hash| hash[:id] == 3 } > > This worked: > results = @selectedProductsArray.find {|hash| hash["id"] == 3 } Of course, when your actual hashes use strings as keys, and not symbols like in the example you gave earlier. Regards, Marcus --