Acts_as_nested_set usable?

According to the Agile book,
“Rails ships with three acts as extensions: acts_as_list, acts_as_tree,
and acts_as_nested_set. I’ve chosen to document just the first two of
these; as this book was being finalized, the nested set variant had some
serious problems that prevent us from verifying its use with working
code.”

So, is it safe to use or not?

I’ve got a forum app, based originally on the RForum codebase, that
would seem to benefit greatly (performance-wise) from using
acts_as_nested_set instead of acts_as_tree.

What say you?

Hi Robert,

I read the same thing while I was in the middle of doing an
acts_as_nested_set forum implementation myself, and it did give me
pause. But, since I was already going down that path rather than using
acts_as_threaded, I decided to press on. I was able to successfuly use
acts_as_nested_set for my threaded forum app, which I started yesterday
and more-or-less finished today. I am happy to say that all of my
tests run, and it seems to be performing well. My particular forum has
multiple roots as well as multiple forums, and so far, I have not seen
any problems.

The directions I followed were from Bob S.'s site I.nfectio.us, and
here is the link:
http://www.railtie.net/articles/2006/03/31/implement-acts_as_threaded-without-a-plugin

Bob is the author of acts_as_threaded as well.

Hope this helps!

C

On Jan 25, 2:53 pm, Robert H. [email protected]

Sorry for the intrusion on this post, but after I replied to Robert
above, I changed my profile to reflect my new company. Unfortunately,
Google doesn’t get the concept of forwarding the link from your old
posts to your new profile, so if anyone would like to contact me
regarding my answer above, you will need to respond to this message
instead. Sorry!

C

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs