1 ActionController::Routing::Routes.draw do |map|
6 map.resources :addresses
12 # The priority is based upon order of creation: first created -> highest priority.
14 # Sample of regular route:
15 # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
16 # Keep in mind you can assign values other than :controller and :action
18 # Sample of named route:
19 # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
20 # This route can be invoked with purchase_url(:id => product.id)
22 # You can have the root of your site routed by hooking up ''
23 # -- just remember to delete public/index.html.
24 # map.connect '', :controller => "welcome"
26 # Allow downloading Web Service WSDL as a file with an extension
27 # instead of a file named 'wsdl'
28 map.connect ':controller/service.wsdl', :action => 'wsdl'
30 # Install the default route as the lowest priority.
31 map.connect ':controller/:action/:id.:format'
32 map.connect ':controller/:action/:id'