Re: acts_as_tree

Ilan Berci
Thu, 06 Aug 2009 16:25:14 -0000

Doug Jolley wrote:

>
> This is not a homework assignment.  It represents an actual need; but,
> I would like to treat it as a learning experience.  The tree involved
> is going to be pretty small, I''m guessing typically 10 - 20 nodes.
I
> think my best approach would be to begin with acts_as_tree; and, when,
> as, and if I ever get that working then try advancing to a nested set
> approach.  (Pro Active Record says that nested sets can be "a little
> complex to grasp and manage".  That scares me at my level of
> understanding.)
>

Doug,

Then I would use what Marmen suggested: awesome_nested_set as while the
earlier approach is probably easier to implement, it is not efficient.
I mistakenly assumed that it was a homework assignment (as we get a lot
of questions on this list for that) and was just giving you the "get it
done" approach

ilan