How about this?

results = @selectedProductsArray.find {|hash| hash[:id] == 3 }

-- 
Posted via http://www.ruby-forum.com/.