Why is a good question here. In other words, what are you going to do  
with the computers and users once
You get them.

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

On 11/02/2009, at 4:42 AM, James Bond <rails-mailing-l...@andreas- 
s.net> wrote:

>
> Rey9999 wrote:
>> If I understand correctly what you need, a computer may belong to  
>> many
>> users and one user can have many computer, right? same for phones, I
>> assume.
>
> Yes
>
>> In this case, the relationship is :has_and_belongs_to_many, but you  
>> do
>
> How can I find all users whose name is "James%" and their computers  
> (not
> mobiles)?
>
> User.find(:all, ??????)
> -- 
> 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