Finished chapter 11
[depot.git] / config / routes.rb
index fa21f855db5b2d976b9d48c710d49920483c4bf2..eef2afceaad134039d2323ee16f3d5c219feee68 100644 (file)
@@ -1,4 +1,10 @@
 ActionController::Routing::Routes.draw do |map|
+  map.resources :users
+
+  map.resources :line_items
+
+  map.resources :orders
+
   map.resources :products
 
   # The priority is based upon order of creation: first created -> highest priority.
@@ -33,11 +39,15 @@ ActionController::Routing::Routes.draw do |map|
   #   end
 
   # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
-  # map.root :controller => "welcome"
+  map.root :controller => "store"
 
   # See how all your routes lay out with "rake routes"
 
   # Install the default routes as the lowest priority.
+  # Note: These default routes make all actions in every controller accessible via GET requests. You should
+  # consider removing the them or commenting them out if you're using named routes and resources.
   map.connect ':controller/:action/:id'
   map.connect ':controller/:action/:id.:format'
+  
+#  map.connect '', :controller => "store"
 end