search for: path_to_chain

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

2006 Jun 13
0
Mixing dynamic and static content in routing
...use polymorphic associations to "link" differend resources (a free form page, a course description and so on) to the nodes. In my routes.conf I have map.connect ''/homepage/*path_info'', :controller => "index", :action => "show_node" and path_to_chain(path) and chain_to_path(ary) methods in the node class for generating a hierarchy of nodes from a path and a path from a hierarchy of nodes respectively. The node hierarchy is completely configurable by the user (adding and removing nodes, turning node visibility on and off, reordering). Th...