This plugin is related to the acts_as_nested_set functionality but differs in that it allows multiple roots to exist within your database. The other benefit, is that when adding a child, it doesn''t perform a full table update to rebuild the tree, each child insertion only affects the tree that it is placed in. It even comes with my first screencast to show how you can build an old school threaded forum. Check it out if you need this extended functionality. http://www.railtie.net/articles/2006/02/05/rails-acts_as_threaded-plugin It''s certainly possible that acts_as_nested_set can be massaged to provide this functionality, but I found it quicker and easier to build it myself. This is a 0.1 version and I haven''t created the unit tests for it yet. Please send bug reports and feature requests back my way. Enjoy! Bob Silva http://www.railtie.net/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060206/d3b68df0/attachment.html
Great plugin and amazing screencast ! What tool did you use to create it ? -- Roberto Saccon - http://rsaccon.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060206/b2dc1fcd/attachment.html
Excellent screencast. I''ll be sure to check out your plugin when I get the opportunity to do so. On 2/6/06, Roberto Saccon <rsaccon@gmail.com> wrote:> Great plugin and amazing screencast ! What tool did you use to create it ? > > -- > Roberto Saccon - http://rsaccon.com > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
From: Bob Silva> > http://www.railtie.net/articles/2006/02/05/rails-acts_as_threaded-pluginHi, I think this is probably a general newbie Rails question, not necessarily specific to this plugin. But I''m following the screencast, duplicating the steps shown, trying to arrive at the same fledgeling threaded forums Rails app. I''ve gotten to where I''m creating my first new post, and I''m seeing a difference between the screencast and my own app. The screencast "New post" form starts out with the Depth, Lft, and Rgt fields already pre-filled with zeros: http://tastyspleen.net/~billk/acts_as_threaded_post_defaults.png Whereas, in my app, these fields are blank: http://tastyspleen.net/~billk/acts_as_threaded_post_nodefaults.png [(And even if I fill in those fields, when I submit the post, it seems some hidden fields like root_id and parent_id are NULL that I think should have had some default value, as well.)] My question is, can anyone give me some hints as to what would allow the screencast app to have default values for some fields, whereas my app does not? I''m wondering if it''s something at the database level . . . . Thanks for your help! Regards, Bill