# Getting acts\_as\_tree to work

**URL:** <https://www.ruby-forum.com/t/getting-acts-as-tree-to-work/135087>\
**Category:** Rails\
**Created:** [April 17, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/getting-acts-as-tree-to-work/135087 "2008-04-17T18:28:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [April 17, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/getting-acts-as-tree-to-work/135087/1 "2008-04-17T18:28:06Z")

</div>

I see others have had configuration issues with acts\_as\_tree and sorted  
them out, but I can’t get it to work. On Rails 2.0.2 I do the usual  
‘ruby script/plugin  
install acts\_as\_tree’ which puts acts\_as\_tree into vendor/plugins.

One respondent said he’d managed to get things to work by altering  
config.plugins but the comment above config.plugins says

# …By default, all plugins

# in vendor/plugins are loaded in alphabetical order.

So it shouldn’t be necessary. In any case if I uncomment config.plugins  
and put act\_as\_tree in it, the system then complains it can’t find  
acts\_as\_tree or any of the other things in the config.plugins list.

What do I have to do to get this to work?

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [April 17, 2008, 8:32pm UTC](https://www.ruby-forum.com/t/getting-acts-as-tree-to-work/135087/2 "2008-04-17T20:32:46Z")

</div>

Are you successfully loading ANY plugins?

–Alan

P.S. I started out with acts\_as\_tree, but ended up going for  
betternestedset to reduce the number of SQL queries.

On Thu, Apr 17, 2008 at 11:28 AM, John S.
