From: spiralofhope Date: 2011-10-12T03:03:50+09:00 Subject: Re: array of hashes Is this what you're looking for? a=Array.new() a.push({:name=>"mario",:value=>"xxx"}) a.push({:name=>"pedro",:value=>"lsss"}) a.each {|h| value=h[:value] if h[:name]=="mario" } => [{:name=>"mario", :value=>"xxx"}, {:name=>"pedro", :value=>"lsss"}] -- http://spiralofhope.com