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.
Justin B. (Guest)
on 2006-03-23 17: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
Rick O. (Guest)
on 2006-03-23 18:05
(Received via mailing list)
On 3/23/06, Justin B. <removed_email_address@domain.invalid> 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 O.
http://techno-weenie.net
This topic is locked and can not be replied to.