Sorry if this is the wrong place for this but how would you take this example:
<% Page.walk_tree do |page, level| %>
<%= link_to "#{'-'*level}#{page.name}", page_path(page) %>
<% end %>
And turn this into a
- list with items? I am trying to use this with jstree to output the tree view.
Sorry if this is the wrong place for this but how would you take this example:
<% Page.walk_tree do |page, level| %>
<%= link_to "#{'-'*level}#{page.name}", page_path(page) %>
<% end %>
And turn this into a