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


-- 
<https://github.com/stomar/>