Steve Castaneda wrote: > Wow. I just stumbled, (after I figured out what AR meant - sorry!) that > I could use :include inside of my find_by... > > Rails surprises me everyday - I'm loving it. Thanks for the guidance. > I'm still trying to figure out who to put it to use. I'm assuming I'll > have to pass in an :include and a :condition.
I think I figured it out. @owners = Owner.find(:all, :include => :widgets, :conditions => 'Widgets.owner_id IS NULL') Now this seems to work, but can I refactor the :conditions at 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.

