What have these options generated for you? It''s hard to know
what''s
wrong unless you tell us what you''re getting (or not getting).
-Kyle
On Apr 12, 11:03 am, Ilya
<h4lfl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> The question is this, how do i display the acts_as_tree tree i have
> created? I have this:
>
> <% puts TreeItem.root.children.find(:all)%>
>
> also i tried: (using the display_children method from the agile book.
>
> <% display_children(root).each do |child| %>
> <ul><li><%= child.name %></li></ul>
> <% end %>
>
> the method:
>
> def display_children(parent)
> puts parent.children.map { |child| child.name
}.join(", ")
> end
>
> what am i doing wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---