Hi ,
   I need to merge an array in ruby on rails.

   array1 =
['01/01/2009','01/01/2009','10/01/2009','01/01/2009','10/01/2009']
   array2 = ['1stjan1','1stjan2','10thjan1','1stjan3','10thjan2']

   I need to have array like this

   array3 =
['01/01/2009'=>'1stjan1-1stjan2-1stjan3','10/01/2009'=>'10thjan1-10thjan2']

  Thanks in Advance.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to