Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Some helpers for using trees in Rails
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
MIT-LICENSE
README
Rakefile
init.rb

README

Recursable
==========

Recursable is a plugin that provides a method for recursing through trees and nested sets.

  <% @things.recurse do |thing, recurse| -%>
    <li>
      <%=h thing.name %>
      <% unless thing.children.empty? -%>
        <ul><% recurse.call %></ul>
      <% end %>
    <% end %>
  <% end -%>

Copyright (c) 2007 Daniel Morrison, Collective Idea, released under the MIT license
Something went wrong with that request. Please try again.