DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Snippets' Routes
These routes allow URLs like tags/whatever/whatever/whatever to put 'whatever', 'whatever', and 'whatever' into the @params[:tags] array, etc.
map.connect '', :controller => "posts", :action => "index" map.connect 'tags/*tags', :controller => 'tag', :action => 'show' map.connect 'user/:user', :controller => 'user', :action => 'show' map.connect 'user/:user/tags/*tags', :controller => 'tag', :action => 'show'






Comments
Snippets Manager replied on Mon, 2012/05/07 - 2:11pm