You can also use Enumerable#group_by to turn the array into a hash arrays grouped by the name. That's what I usually do in this situation. (http://api.rubyonrails.org/classes/Enumerable.html#M002570)
cheers, steven bristol --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---