# Problems with acts\_as\_tree---urgent need help

**URL:** <https://www.ruby-forum.com/t/problems-with-acts-as-tree-urgent-need-help/133397>\
**Category:** Rails\
**Created:** [March 31, 2008, 8:23am UTC](https://www.ruby-forum.com/t/problems-with-acts-as-tree-urgent-need-help/133397 "2008-03-31T08:23:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![fries88](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/6bbea6/32.png) [@fries88](https://www.ruby-forum.com/u/fries88)\
**Post date:** [March 31, 2008, 8:23am UTC](https://www.ruby-forum.com/t/problems-with-acts-as-tree-urgent-need-help/133397/1 "2008-03-31T08:23:11Z")

</div>

Hi,

Does anyone know if there is any tutorials about act\_as\_tree ? Or can  
anyone provide step-by-step method of using acts\_as\_tree?

Have tried looking for answers but kept getting “NoMethodError:  
undefined method `acts\_as\_tree’”.

Thanks

---

<div class="post-metadata">

**Author:** ![fries88](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/6bbea6/32.png) [@fries88](https://www.ruby-forum.com/u/fries88)\
**Post date:** [March 31, 2008, 8:32am UTC](https://www.ruby-forum.com/t/problems-with-acts-as-tree-urgent-need-help/133397/2 "2008-03-31T08:32:23Z")

</div>

Did you install it properly? acts\_as\_tree has been taken out of rails  
core  
and moved to a plugin, so you might not have it installed.

On Mon, Mar 31, 2008 at 4:53 PM, user splash \<  
removed\_email\_address@domain.invalid\> wrote:

> ## Thanks
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
Ryan B.

> **[frozenplague.net](http://www.frozenplague.net)**
>
> This domain may be for sale!

Feel free to add me to MSN and/or GTalk as this email.

---

<div class="post-metadata">

**Author:** ![fries88](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/6bbea6/32.png) [@fries88](https://www.ruby-forum.com/u/fries88)\
**Post date:** [March 31, 2008, 8:41am UTC](https://www.ruby-forum.com/t/problems-with-acts-as-tree-urgent-need-help/133397/3 "2008-03-31T08:41:58Z")

</div>

Ryan B. wrote:

> Did you install it properly? acts\_as\_tree has been taken out of rails  
> core  
> and moved to a plugin, so you might not have it installed.
> 
> On Mon, Mar 31, 2008 at 4:53 PM, user splash \<  
> removed\_email\_address@domain.invalid\> wrote:
> 
> > ## Thanks
> > 
> > Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> > 
> > >
> 
> –  
> Ryan B.  
> [http://www.frozenplague.net](http://www.frozenplague.net)  
> Feel free to add me to MSN and/or GTalk as this email.

Hi,

How do I check if it is installed properly? If its not installed  
properly how or what are the steps to do so?

Thanks

---

<div class="post-metadata">

**Author:** ![fries88](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/6bbea6/32.png) [@fries88](https://www.ruby-forum.com/u/fries88)\
**Post date:** [March 31, 2008, 11:01am UTC](https://www.ruby-forum.com/t/problems-with-acts-as-tree-urgent-need-help/133397/4 "2008-03-31T11:01:28Z")

</div>

Frederick C. wrote:

> On 31 Mar 2008, at 07:41, user splash wrote:
> 
> > > to MSN and/or GTalk as this email.
> > 
> > Hi,
> > 
> > How do I check if it is installed properly? If its not installed  
> > properly how or what are the steps to do so?
> 
> Well if you have a folder called acts\_as\_plugin in vendor/rails it’s  
> probably ok, if it isn’t then it’s definitely not (you can get it from  
> [http://svn.rubyonrails.org/rails/plugins/acts\_as\_tree/](http://svn.rubyonrails.org/rails/plugins/acts_as_tree/))
> 
> Fred

Thanks a lot it worked =)

---

<div class="post-metadata">

**Author:** ![fries88](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/6bbea6/32.png) [@fries88](https://www.ruby-forum.com/u/fries88)\
**Post date:** [March 31, 2008, 10:56am UTC](https://www.ruby-forum.com/t/problems-with-acts-as-tree-urgent-need-help/133397/5 "2008-03-31T10:56:14Z")

</div>

On 31 Mar 2008, at 07:41, user splash wrote:

> > to MSN and/or GTalk as this email.
> 
> Hi,
> 
> How do I check if it is installed properly? If its not installed  
> properly how or what are the steps to do so?

Well if you have a folder called acts\_as\_plugin in vendor/rails it’s  
probably ok, if it isn’t then it’s definitely not (you can get it from  
[http://svn.rubyonrails.org/rails/plugins/acts\_as\_tree/](http://svn.rubyonrails.org/rails/plugins/acts_as_tree/))

Fred

---

<div class="post-metadata">

**Author:** ![fries88](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/6bbea6/32.png) [@fries88](https://www.ruby-forum.com/u/fries88)\
**Post date:** [April 1, 2008, 6:25am UTC](https://www.ruby-forum.com/t/problems-with-acts-as-tree-urgent-need-help/133397/6 "2008-04-01T06:25:38Z")

</div>

Figured it out. I had to add the plugin name ‘acts\_as\_tree’ to  
config.plugins in my config/environment.rb file.

---

<div class="post-metadata">

**Author:** ![fries88](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/6bbea6/32.png) [@fries88](https://www.ruby-forum.com/u/fries88)\
**Post date:** [April 1, 2008, 6:20am UTC](https://www.ruby-forum.com/t/problems-with-acts-as-tree-urgent-need-help/133397/7 "2008-04-01T06:20:57Z")

</div>

On Mar 31, 4:55 am, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Well if you have a folder called acts\_as\_plugin in vendor/rails it’s  
> probably ok, if it isn’t then it’s definitely not (you can get it fromhttp://svn.rubyonrails.org/rails/plugins/acts\_as\_tree/)

I don’t have a directory vendor/rails at all. I do have vendor/  
plugin. This project is an upgrade from 1.2.6 to 2.0.2. Note however  
that when I create a new project, e.g. “rails newproject”, the  
newproject/vendor directory there does not have a rails directory  
either.

Without a vendor/rails directory, I too get the "undefined method:  
acts\_as\_tree’ error. If I create such a directory, I can’t even start  
the web server.

I have removed and then reinstalled the acts\_as\_tree plugin, using  
the ./script/plugin install acts\_as\_tree syntax.

What am I missing?

steven

---

<div class="post-metadata">

**Author:** ![fries88](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/6bbea6/32.png) [@fries88](https://www.ruby-forum.com/u/fries88)\
**Post date:** [April 1, 2008, 5:20pm UTC](https://www.ruby-forum.com/t/problems-with-acts-as-tree-urgent-need-help/133397/8 "2008-04-01T17:20:09Z")

</div>

I could be mistaken, but I believe that acts\_as\_tree will be located  
in vendor/plugins (not vendor/rails) when installed properly.  
Creating an empty vendor/rails directly will definitely cause you  
problems because your app will look for rails there instead of the  
standard system location. When it doesn’t find it, it won’t start.

Anyway, on my machine with rails 2.0.2, the usual ‘ruby script/plugin  
install acts\_as\_tree’ put it into the vendor/rails directory.

-Kyle

On Mar 31, 11:25 pm, “Steven D. Arnold” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
