Hi there, What''s the correct & most efficient way to compose the following array? I have: Existing tables: ===============- users (:id) - user_languages (:id, :user_id, :language_id) - languages (:id, :name) Existing array: ==============@user_languages Wanted array: (for a specific user) ============"@languages" = Languages.find(:all) - ("Languages" whose ":ids" can be found as ":language_ids" in the existing array "@user_languages") Thanks a lot for your help! Tom -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---