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
end
class Family < ActiveRecord::Base
    belongs_to :group
end
in my controller I''m trying
@kids = Kid.find(:all, :include => [:family],:conditions=>["
''group.country''=? ", params[:id]])
Do I have to add to the include  "   :include => [:family,:group]
" ?
Or do I have to add something the Kid model ?
Thanks
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---