@@ -1,24 +1,24 | |||||
1 | ActionController::Routing::Routes.draw do |map| |
|
1 | ActionController::Routing::Routes.draw do |map| | |
2 | # Add your own custom routes here. |
|
2 | # Add your own custom routes here. | |
3 | # The priority is based upon order of creation: first created -> highest priority. |
|
3 | # The priority is based upon order of creation: first created -> highest priority. | |
4 |
|
4 | |||
5 | # Here's a sample route: |
|
5 | # Here's a sample route: | |
6 | # map.connect 'products/:id', :controller => 'catalog', :action => 'view' |
|
6 | # map.connect 'products/:id', :controller => 'catalog', :action => 'view' | |
7 | # Keep in mind you can assign values other than :controller and :action |
|
7 | # Keep in mind you can assign values other than :controller and :action | |
8 |
|
8 | |||
9 | # You can have the root of your site routed by hooking up '' |
|
9 | # You can have the root of your site routed by hooking up '' | |
10 | # -- just remember to delete public/index.html. |
|
10 | # -- just remember to delete public/index.html. | |
11 | map.connect '', :controller => "welcome" |
|
11 | map.connect '', :controller => "welcome" | |
12 |
|
12 | |||
13 | map.connect 'roles/workflow/:id/:role_id/:tracker_id', :controller => 'roles', :action => 'workflow' |
|
13 | map.connect 'roles/workflow/:id/:role_id/:tracker_id', :controller => 'roles', :action => 'workflow' | |
14 | map.connect 'help/:ctrl/:page', :controller => 'help' |
|
14 | map.connect 'help/:ctrl/:page', :controller => 'help' | |
15 | map.connect ':controller/:action/:id/:sort_key/:sort_order' |
|
15 | #map.connect ':controller/:action/:id/:sort_key/:sort_order' | |
16 |
|
16 | |||
17 | # Allow downloading Web Service WSDL as a file with an extension |
|
17 | # Allow downloading Web Service WSDL as a file with an extension | |
18 | # instead of a file named 'wsdl' |
|
18 | # instead of a file named 'wsdl' | |
19 | map.connect ':controller/service.wsdl', :action => 'wsdl' |
|
19 | map.connect ':controller/service.wsdl', :action => 'wsdl' | |
20 |
|
20 | |||
21 |
|
21 | |||
22 | # Install the default route as the lowest priority. |
|
22 | # Install the default route as the lowest priority. | |
23 | map.connect ':controller/:action/:id' |
|
23 | map.connect ':controller/:action/:id' | |
24 | end |
|
24 | end |
General Comments 0
You need to be logged in to leave comments.
Login now