Hi Nick,
The short story is that I broke it and Fabien fixed it again in rev
51. However, children_count now returns the number of _direct_
children (as one would expect), while all_children_count returns the
total number of nested children. I don''t like breaking compatibility
by changing methods like that, but the old children_count was
misleading and inconsistent with acts_as_tree.
k
On 3/6/07, Nick Pavlica <linicks at gmail.com>
wrote:> Hi All,
> I decided to move to rails 1.2.2 and Better nested sets stable v50
> or 0.1. Everything has been working as it should except this :
>
> <%= project.children_count %>
>
>
> Here is the error:
>
> undefined method `children_count'' for #<Project:0xb68649c4>
>
> Thanks!
> --Nick
> _______________________________________________
> Betternestedset-talk mailing list
> Betternestedset-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/betternestedset-talk
>