TreeHtml
Generate plain css tree structure.
Installation
Add this line to your application's Gemfile:
gem 'tree_html'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tree_html
Usage
In Node class, include TreeHtml, then implement label_for_tree_html and children_for_tree_html, then calltree_html on node object to get ul/li fragment, or tree_html_full to get a html file with pre-defined style.
You may overwrite css_for_tree_html to specify your own style.
Or checkout test/tree_html_test.rb to see how to use.