projects
/
depot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Functional tests now work properly, bearing in mind whether a user is logged in or...
[depot.git]
/
config
/
routes.rb
diff --git
a/config/routes.rb
b/config/routes.rb
index fa21f855db5b2d976b9d48c710d49920483c4bf2..eef2afceaad134039d2323ee16f3d5c219feee68 100644
(file)
--- a/
config/routes.rb
+++ b/
config/routes.rb
@@
-1,4
+1,10
@@
ActionController::Routing::Routes.draw do |map|
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.
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.
# end
# You can have the root of your site routed with map.root -- just remember to delete public/index.html.
-
# map.root :controller => "welcom
e"
+
map.root :controller => "stor
e"
# See how all your routes lay out with "rake routes"
# Install the default routes as the lowest priority.
# 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/:action/:id'
map.connect ':controller/:action/:id.:format'
+
+# map.connect '', :controller => "store"
end
end