Forum: Ruby on Rails left outer join inside another?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
82fdd815fedbcd9cca7eb94644a0530b?d=identicon&s=25 cfingerh (Guest)
on 2007-04-24 05:40
(Received via mailing list)
I have three tables

"kids" which belongs_to "families" which belongs "group"
 I want to get all the kids from a certain group

I have my models

class Kid < ActiveRecord::Base
    belongs_to :family

class Family < ActiveRecord::Base
    belongs_to :group

in my controller I'm trying

@kids = Kid.find(:all, :include => [:family],:conditions=>["
''=? ", params[:id]])

Do I have to add to the include  "   :include => [:family,:group]
" ?
Or do I have to add something the Kid model ?

This topic is locked and can not be replied to.