Why can't I do cascading includes in ruby on rails:
Tree.find(:first, :include => {:children => {:children => :children}})
I get an error for 3 cascading joins but not 2
I am wondering why you would need to pull all of that information at once? Could you not simply do the one include at first and simply for child in children.children later on when you need it? Can you give a example of why you are needing the cascading includes?
The search for people who can answer your question continues for as long as needed - until you find the answer you were looking for.
When an answer is posted by someone who was invited (byYedda or by yourself) to answer your question, their answer is marked with a yellow "invited by Yedda".
To be invited to answer other people's questions in your areas of knowledge and interest, be sure to list your favorite topics:
» My Settings My Topics.
Of course, the more helpful your answers are, the more likely you are to be invited to future questions...
I want to load all of the comments for a post with one query. I actually figured out this was an error and submitted a patch for it:
http://dev.rubyonrails.org/changeset/4776
Got an answer for richcollins? Would you like to comment on the posted answers, or vote for the one which you think is the best?
Sign up for a free account, or sign in (if you're already a member).
Other people asked questions on similar topics, check out the answers they received: