Forum: Ruby on Rails [ANN] acts_as_threaded plugin

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bob S. (Guest)
on 2006-02-06 05:03
(Received via mailing list)
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-a...



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 S.

http://www.railtie.net/
Roberto S. (Guest)
on 2006-02-06 07:57
(Received via mailing list)
Great plugin and amazing screencast !  What tool did you  use to create
it ?
Peter Earle (Guest)
on 2006-02-06 08:46
(Received via mailing list)
Excellent screencast. I'll be sure to check out your plugin when I get
the opportunity to do so.
Bill K. (Guest)
on 2006-03-13 21:52
(Received via mailing list)
From: Bob S.
>
> http://www.railtie.net/articles/2006/02/05/rails-a...

Hi, 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_pos...

Whereas, in my app, these fields are blank:

http://tastyspleen.net/~billk/acts_as_threaded_pos...

[(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
This topic is locked and can not be replied to.