On Aug 19, 12:18 pm, Gleb Mazovetskiy <rails-mailing-l...@andreas- s.net> wrote: > It does have a tutorial somewhere in Wiki section of github, as long as > I remember. > > But all you really need is to install it, declare :lft, :rgt, and > :parent_id in the migration, and put act_as_nested_set in the model. Not > hard at all.
Right. > However, note that you should recreate all the existing instances of the > model, so that :lft and :rgt fields will be set. That's unnecessary. You can just walk the tree and set them appropriately (this is best done in the migration). Or even easier, just call Model.rebuild! . See http://bit.ly/gVr7Q . > > Cheers, > Gleb Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

