Guest User

Untitled

a guest
Feb 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. map.connect '', :controller => 'teasers'
  2.  
  3. map.connect 'page_category/:id/list', :controller => 'page_categories', :action => 'list_pages'
  4. map.connect 'menu_item/:menu_id/page_category/:id/list', :controller => 'page_categories', :action => 'list_pages'
  5.  
  6. map.connect 'menu_item/:menu_id/:controller/:action/:id', :menu_id => /\d+/
  7.  
  8. #nice map for menu editing
  9. map.connect 'menu/:menu_name/:action/:id', :controller => 'menu_items', :action => 'list_by_name'
  10.  
  11. # Allow downloading Web Service WSDL as a file with an extension
  12. # instead of a file named 'wsdl'
  13. map.connect ':controller/service.wsdl', :action => 'wsdl'
  14.  
  15. # Install the default route as the lowest priority.
  16. map.connect ':controller/:action/:id'
Add Comment
Please, Sign In to add comment