Forum: Ruby on Rails using :include with acts_as_tree?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ec30a6fd730b3c7788b59409ed568e7a?d=identicon&s=25 Justin Blake (Guest)
on 2006-03-23 16:19
(Received via mailing list)
Is there a way to eager load children with a model that acts_as_tree?

I tried:

:include => :children

but it gives a mysql error...

Thanks,
Justin
821395fe70906c8290df7f18ac4ac6cf?d=identicon&s=25 Rick Olson (Guest)
on 2006-03-23 17:05
(Received via mailing list)
On 3/23/06, Justin Blake <jblaix@gmail.com> wrote:
> Is there a way to eager load children with a model that acts_as_tree?
>
> I tried:
>
> :include => :children
>
> but it gives a mysql error...
>
> Thanks,
> Justin

Try the Rails 1.1 RC.

--
Rick Olson
http://techno-weenie.net
This topic is locked and can not be replied to.