Hi all,

I'm sure that there is somewhere an explanation on how this works but I
can't find it by myself.

I need to have a hash like this one:

{"name":"Admiral Ackbar"},{"name":"Bail Organa"}

so I need a hash with hashes inside.

If I make

myhash.merge ({"name" => "Bail Organa"})

all I get it's just the last pair, since it's updating it everytime.

How can I have a hash like the first one?

I'm sure someone had this problem before.

Thanks in advance.

Regards,
Antonio
-- 
Posted via http://www.ruby-forum.com/.