pierodancona / gmail.com pisze:
> This is certainly well known, but not to me.
> 
>>> a  = [{"aa"=>"bb"},{"aa"=>"bb"}]
> => [{"aa"=>"bb"}, {"aa"=>"bb"}]
> 
>>> a.uniq
> => [{"aa"=>"bb"}, {"aa"=>"bb"}]
> 
> Why? and, what should I use instead of .uniq
> to remove the duplicate?
> 

1.8.7 and 1.9.x use deep hashing for hashes, to achieve that in 1.8.6 
you need to monkey patch Hash: http://pastie.org/pastes/272194

lopex