1 ActionController::Routing::Routes.draw do |map|
2 # The priority is based upon order of creation: first created -> highest priority.
4 # Sample of regular route:
5 # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
6 # Keep in mind you can assign values other than :controller and :action
8 # Sample of named route:
9 # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
10 # This route can be invoked with purchase_url(:id => product.id)
12 # You can have the root of your site routed by hooking up ''
13 # -- just remember to delete public/index.html.
14 map.connect '', :controller => 'folder'
16 # Allow downloading Web Service WSDL as a file with an extension
17 # instead of a file named 'wsdl'
18 map.connect ':controller/service.wsdl', :action => 'wsdl'
20 # This route helps determine if it's a folder or a file that is
21 # being added/remove to/from the clipboard.
22 map.connect 'clipboard/:action/:folder_or_file/:id',
23 :controller => 'clipboard',
24 :requirements => { :action => /(add|remove)/,
25 :folder_or_file => /(folder|file)/ }
27 # Install the default route as the lowest priority.
28 map.connect ':controller/:action/:id'
30 map.connect '/javascripts/tiny_mce/tiny_mce_gzip.js', :controller => "tiny_mce_gzip"
31 map.connect '/javascripts/tiny_mce/tiny_mce_gzip_load.js', :controller => "tiny_mce_gzip", :action => 'aggregate'