search for: show_up

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

Did you mean: show_op
2006 Jan 19
0
Problem with an Tree-like object hierarchy (ActiveRecord acts_as_tree)
...leafs) is fine. Now the problem: when I pick an node from the tree and try to activate itself and all its ancestors, only the one element will get activated. Trying something like my_node.children[0].parent.active = true doesn''t work either. When I make the call recursive like def show_up puts "activating #{self.name}" @active = true if parent then parent.show_up end end I can see in the log file that its traversing all the way up to the root, but only the activation of the node called will ''stick''. speaking of ''stick'',...