MonoForge

collectiveidea / recursable

recursable

Public

Some helpers for using trees in Rails

10 filesupdated Jun 18, 2026

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