On Sat, Jun 29, 2013 at 6:05 PM, Rodrigo Lueneberg <lists / ruby-forum.com>wrote:

> 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 }
>

Nobody will be able to understand your conclusion in absence of the real
code you used to create the Array - if you created an array.

Good luck!

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/