Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- map.connect '', :controller => 'teasers'
- map.with_options(:defaults => {:menu_id => 'default_value'}, :requirements => {:menu_id => /\d+/}) do |m|
- m.connect 'page_category/:id/list/:menu_id', :controller => 'page_categories', :action => 'list_pages'
- m.connect 'menu_item/page_category/:id/lis/:menu_id', :controller => 'page_categories', :action => 'list_pages'
- m.connect 'menu_item/:controller/:action/:id/:menu_id'
- end
- #nice map for menu editing
- map.connect 'menu/:menu_name/:action/:id', :controller => 'menu_items', :action => 'list_by_name'
- # Allow downloading Web Service WSDL as a file with an extension
- # instead of a file named 'wsdl'
- map.connect ':controller/service.wsdl', :action => 'wsdl'
- # Install the default route as the lowest priority.
- map.connect ':controller/:action/:id'
Add Comment
Please, Sign In to add comment