Oh by the way if you do that you'll end up with an array of arrays.  
Might not be what you want.

Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/

On 11/02/2009, at 11:50 PM, Sijo Kg <[email protected]>  
wrote:

>
> Hi
>
> @users = User.find(:all,:conditions=> ['name LIKE ?', "James%"])
> @user_computers = []
> @users.each do |user|
> @user_computers << user.computers
> end
>
> @user_computers now contains computers you need
>
>
> Sijo
> -- 
> 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