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 has posted 5883 posts at DZone. View Full User Profile

Snippets' Routes

04.07.2005
| 6048 views |
  • submit to reddit
        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

These routes are now outdated.