From: Sijo Kg Date: 2008-09-09T19:20:08+09:00 Subject: Re: collect Hi Here I tried like email_array = Contact.get_email_ids_of_contacts(problem.reported_by_id) unless problem.reported_by_id.empty? It worked and I got the two mailIDs But when I add the next line like email_array = email_array + Contact.get_email_ids_of_contacts(problem.analyst_id) unless problem.analyst_id.empty? Now it is not working What might be the cause.Please help Note: In get_email_ids_of_contacts of Contact model just wrote return Contact.find_by_id(contact_id).contact_email_addresses.find(:all, :conditions => ['contact_email_address_type_id=?',2]).collect { |mail| mail.email} Sijo -- Posted via http://www.ruby-forum.com/.