Monday, January 23, 2006

Ruby Routes - Custom routes in Ruby

Example of how you will create Ruby Routes.

map.connect ':primary/:category', :controller => 'site', :action => 'list'
map.connect 'tag/:tag', :controller => 'site', :action => 'list'
map.connect ':category', :controller => 'site', :action => 'list'



Put in routes.rb

0 Comments:

Post a Comment

<< Home

eXTReMe Tracker