Last change
on this file since 0f6d75f was 7b7d827, checked in by njw <njw@…>, 11 years ago |
opened projects: hothotwrite and contact
|
-
Property mode
set to
100644
|
File size:
977 bytes
|
Line | |
---|
1 | ActionController::Routing::Routes.draw do |map|
|
---|
2 | # The priority is based upon order of creation: first created -> highest priority.
|
---|
3 |
|
---|
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
|
---|
7 |
|
---|
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)
|
---|
11 |
|
---|
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 => 'listcontactgroup'
|
---|
15 |
|
---|
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'
|
---|
19 |
|
---|
20 | # Install the default route as the lowest priority.
|
---|
21 | map.connect ':controller/:action/:id.:format'
|
---|
22 | map.connect ':controller/:action/:id'
|
---|
23 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.