1 |
4
|
jplang
|
ActionController::Routing::Routes.draw do |map|
|
2 |
|
|
# Add your own custom routes here.
|
3 |
|
|
# The priority is based upon order of creation: first created -> highest priority.
|
4 |
|
|
|
5 |
|
|
# Here's a sample route:
|
6 |
|
|
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'
|
7 |
|
|
# Keep in mind you can assign values other than :controller and :action
|
8 |
|
|
|
9 |
760
|
jplang
|
map.home '', :controller => 'welcome'
|
10 |
323
|
jplang
|
|
11 |
772
|
jplang
|
map.connect 'wiki/:id/:page/:action', :controller => 'wiki', :page => nil
|
12 |
|
|
map.connect 'roles/workflow/:id/:role_id/:tracker_id', :controller => 'roles', :action => 'workflow'
|
13 |
|
|
map.connect 'help/:ctrl/:page', :controller => 'help'
|
14 |
|
|
#map.connect ':controller/:action/:id/:sort_key/:sort_order'
|
15 |
4
|
jplang
|
|
16 |
506
|
jplang
|
map.connect 'issues/:issue_id/relations/:action/:id', :controller => 'issue_relations'
|
17 |
529
|
jplang
|
map.connect 'projects/:project_id/boards/:action/:id', :controller => 'boards'
|
18 |
|
|
map.connect 'boards/:board_id/topics/:action/:id', :controller => 'messages'
|
19 |
506
|
jplang
|
|
20 |
4
|
jplang
|
# Allow downloading Web Service WSDL as a file with an extension
|
21 |
|
|
# instead of a file named 'wsdl'
|
22 |
|
|
map.connect ':controller/service.wsdl', :action => 'wsdl'
|
23 |
772
|
jplang
|
|
24 |
4
|
jplang
|
|
25 |
|
|
# Install the default route as the lowest priority.
|
26 |
|
|
map.connect ':controller/:action/:id'
|
27 |
|
|
end
|