public
Description: Some helpers for using trees in Rails
Homepage:
Clone URL: git://github.com/collectiveidea/recursable.git
Click here to lend your support to: recursable and make a donation at www.pledgie.com !
name age message
file MIT-LICENSE Mon Oct 01 08:18:58 -0700 2007 Added basic recursable plugin git-svn-id: http... [danielmorrison]
file README Mon Feb 23 07:18:32 -0800 2009 Give brief example in docs [brandon]
file Rakefile Mon Oct 01 08:18:58 -0700 2007 Added basic recursable plugin git-svn-id: http... [danielmorrison]
file init.rb Mon Feb 23 07:05:33 -0800 2009 Moving some things around [brandon]
directory lib/ Mon Feb 23 07:18:32 -0800 2009 Give brief example in docs [brandon]
directory test/ Mon Oct 01 08:18:58 -0700 2007 Added basic recursable plugin git-svn-id: http... [danielmorrison]
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