search for: list_all_pag

Displaying 1 result from an estimated 1 matches for "list_all_pag".

Did you mean: list_all_pages
2006 Nov 04
1
acts_as_tree repeats
...ve read some articles about it and read the API docs, and now I''ve got this running: in controller I have: --- def index @pages = Page.find(:all) end --- in the model for Page I have ofcourse: --- acts_as_tree :order => "position" --- in the helper I have; --- def list_all_pages(pages) if pages.size > 0 ret = "<ul>\n" pages.each do |subpage| ret += "<li>\n" ret += link_to h(subpage.name)+" ("+subpage.children.size.to_s+")", :action => ''edit'', :id => subpage...