Eager loading problem

Hi --

Hi --

Hi --

Hi --

I apologize, I was too anxious to post and made typos.

In my previous post I meant to say topic.boardings.board is the only way
I can access the associated boards without an extra query running.
Thus, the only way I can get all of the boards without for a particular
Topic object without having queries run during rendering is to use the
topic.boardings.collect {|b| b.board}. Which isn't horrible, but
definitely not convenient. I can use topic.boards -- it doesn't
actually cause any error -- but it does cause queries to run during
rendering since Rails doesn't "think" the topic's boards have been
loaded already.

I played around with this some more after realizing that my assumption
was wrong (i.e., that the :through stuff could and would happen
without a further query if all the necessary records had been eagerly
loaded), and I couldn't come up with anything either. The collect
thing really isn't so bad, since everything's already loaded, and it
could be wrapped up in a method... but I'll be interested to see
whether anyone has a further suggestion for doing it all at once,
including the :through's. (Or if someone can demonstrate why it's
illogical/impossible.)

David