Frederick Cheung wrote:
> On Sep 11, 6:28�am, Sijo Kg <[EMAIL PROTECTED]> wrote:
> 
>> end
>> � � � � But this does not give array like above?Could you please tell me
>> where is the fault?A group may have more than one manager and each
>> manager has more than one email addresses of the above type.That is why
>> I wrote code like above �Groups and Contacts are connected through user
>> groups (has_many :through relation)
>>
> You're generating these arrays using map but then you're just throwing
> them away (each returns the collection it iterated over. Perhaps you
> mean that to be map or inject instead to concatenate the various
> arrays produced?
> 
> Fred

Array.partial
-- 
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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to