Forum: Ruby on Rails acts_as_tree order option

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
johan duflost (Guest)
on 2006-02-23 14:27
(Received via mailing list)
Hello all,

I'd like to order a model which acts as a tree by an attribute belonging
an associated model.

Model A has many B.
In A, I have the declaration acts_as_tree :order => "name" where name is
attribute of B.

Does anybody know how I can achieve this ?


Johan Duflost
Analyst Programmer
Belgian Biodiversity Platform (
Belgian Federal Science Policy Office ( )
Tel:+32 2 650 5751 Fax: +32 2 650 5124
This topic is locked and can not be replied to.