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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---