they wil be unique , before adding a new hash, I'll have to check if the key already exist but I agree with Colin, better build a straight hash first
On 24 fév, 20:06, Michael Pavling <[email protected]> wrote: > On 24 February 2011 18:29, Erwin <[email protected]> wrote: > > > I have an array of hash : > > tags_on > > => [{:point=>["a", "b", "c"]}, {:comma=>["d", "e"]}] > > What if your array of hashes looks like this: > > [{:point=>["a", "b", "c"], :comma=>["f", "g"]}, {:comma=>["d", "e"]}] > > ..how would you know which :comma key to retrieve? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

