search for: treelistview_tree

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

2005 Dec 26
0
Why isn''t this working???
...something wrong? --Thanks in advance, flamesrock (by the way.. for some reason, I login successfully, but my session doesn''t work.. so I''m posting as a guest) ## acts_as_tree_additions.rb ##credited to argv[] in #rubyonrails ## module ActiveRecord::Acts::Tree::ClassMethods @@TreeListView_tree = nil def Object.format_as_list(options = {}, pid = nil, level = 0, &block) @@TreeListView_tree ||= self.find(:all, options) t = Array.new return t if @@TreeListView_tree.nil? list = @@TreeListView_tree.find_all { |e| e.parent_id == pid }.sort! list.each do |e| arra...