SOLUTION: You're not going to believe this.
1. Install the plugin 2. Write and run a migration to add `lft` and `rgt` integer columns to your model 3. Change `acts_as_tree` to `acts_as_nested_set` in your model 4. Open the Console 5. type: NameOfYourModel.rebuild! That's it! Woah, I've been looking for this for weeks. I hope it helps somebody out there. On Feb 18, 1:31 pm, Mindtonic <[email protected]> wrote: > Every time I tries to run the migration, the rake aborted saying that > there is a missing attribute 'name', which is definitely present in > the model. Also, the awesome_nested_set rdocs fail to rake... > rendering the concept useless as there is very little online > documentation. Oh well... > > On Feb 18, 1:00 pm, Roderick van Domburg <rails-mailing-l...@andreas- > > s.net> wrote: > > Mindtonic wrote: > > > Is awesome_nested_set a better choice than better_nested_set? I found > > > the following on the better_nested_set wiki page: > > > Yes. Use awesome_nested_set instead. > > > > Migrating from acts_as_tree > > > > In reference to migrating from acts_as_tree Krishna Dole said, If you > > > have multiple trees in your table, it is a little more complicated. > > > You first need to give each tree scope (add a tree_id column) and then > > > run the above method on a member of each tree. > > > > Not completely understanding that statement, I set out to implement it > > > in a migration. Here is my result which appears to work. In this > > > example, I am using a model named Categories: > > > Never read and thought of that, but that should work great! > > > -- > > Roderick van Domburghttp://www.nedforce.com > > -- > > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

