Add the has_many_polymorphs plugin
[cs356-p2-videostore.git] / vendor / plugins / has_many_polymorphs / test / integration / app / config / routes.rb
1 ActionController::Routing::Routes.draw do |map|
2   map.resources :states
3
4   map.resources :states
5
6   map.resources :addresses
7
8   map.resources :sellers
9
10   map.resources :users
11
12   # The priority is based upon order of creation: first created -> highest priority.
13   
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
17
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)
21
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"
25
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'
29
30   # Install the default route as the lowest priority.
31   map.connect ':controller/:action/:id.:format'
32   map.connect ':controller/:action/:id'
33 end