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
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 %>
+
2 matches
Mail list logo