Forum: Ruby on Rails acts_as_tree order option

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.
33ada38869e3bd882cfbe6799b5c822b?d=identicon&s=25 johan duflost (Guest)
on 2006-02-23 13:27
(Received via mailing list)
Hello all,

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

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

Does anybody know how I can achieve this ?

Johan

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