On 14/04/2005, at 3:53 AM, Pedro Valentini wrote:>  I have a model with:
> acts_as_tree :order => ''name'', :foreign_key =>
''parent_id''
>  and I want to create a link in the website where the user click and 
> change this order to :order => ''submit_dt''
>  How can I do this?
Its probably easiest to just sort the children array yourself in the 
controller. You could override your find method and resort the array 
based on some instance data.
It would be interesting if we could have hooks in ActiveRecord to 
programatically supply configuration data, rather than it just using 
the config hash which is setup after the AR macro is defined.
- tim lucas