search for: write_url_for

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

2006 Jun 17
2
URL based on acts_as_tree using routes
...of routes.rb. In Psuedo "i-dont-know-ruby-that-well" code, this would be nice: map.connect '':acts_as_tree'', :controller => ''pages'', :action => ''view'', :acts_as_tree => { :model => Page, :write_url_for => Page.name, :root_id => 0, :default_url => Page.find_by_id(:first) } OR, with a URL prefix such as "pages": map.connect ''pages/:acts_as_tree'', :controller => ''pages'', :action...