gluttonberg/app/helpers/application_helper.rb
def page_table_rows(pages, output = "", inset = 0)
        pages.each do |page|
          output << partial("content/pages/row", :page => page, :inset => inset)
          page_table_rows(page.children, output, inset + 1)
        end
        output
      end
# Writes out a row for each page and then for each page's children, 
# iterating down through the heirarchy.
Writes out a row for each page and then for each page's children,
iterating down through the heirarchy.
Writes out a row for each page and then for each page ' s children iterating down through the heirarchy .
def page_table_rows(pages, output = "", inset = 0)
        pages.each do |page|
          output << partial("content/pages/row", :page => page, :inset => inset)
          page_table_rows(page.children, output, inset + 1)
        end
        output
      end
def page_table_rows ( pages , output = "" , inset = 0 ) pages . each do | page | output << partial ( "content/pages/row" , :page => page , :inset => inset ) page_table_rows ( page . children , output , inset + 1 ) end output end
Writes out a row for each page and then for each page's children,
iterating down through the heirarchy.
Writes out a row for each page and then for each page ' s children iterating down through the heirarchy .
pages
output
inset