Re: [Rails] acts_as_tree question

2010-02-08 Thread Gianluca Tessarolo
Hi, I think you've made a little mistake... The correct form is this: <% for group in Group.roots %> ... <%= link_to (group.name), group %> ... <% for child in group.children %> ... <%= link_to (child.name), child %> ... Notice the use of "group.children" instead "Group.childre

[Rails] acts_as_tree question

2010-02-08 Thread db_333
Hi, I'm trying to implement a very simple acts_as_tree search in my index html. I am able to show the parents, with no issue, but the children will not show. I have something like this for the parent, which displays fine: <% for group in Group.roots %> +