Skip to content

How to generate full ul/li tree with walk_tree? #69

@spacerobotTR

Description

@spacerobotTR

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions