a.find(:all, :include => :b, :include => :c)
does not. It only returns the join of a and c (or the last table in the
list)
You have to do:
:include => [:b, :c]
i.e., an array. Remember that all that :key => value stuff is
actually a hash. If you give two :include keys, one will get
clobbered.
David
–
Q. What is THE Ruby book for Rails developers?
A. RUBY FOR RAILS by David A. Black (Ruby for Rails)
(See what readers are saying! http://www.rubypal.com/r4rrevs.pdf)
Q. Where can I get Ruby/Rails on-site training, consulting, coaching?
A. Ruby Power and Light, LLC (http://www.rubypal.com)