Displaying 1 result from an estimated 1 matches for "cartitemscontrol".
2007 Oct 18
0
REST help
Hi all,
I am trying to build a RESTful shopping cart and I have hit a small
wall, but before I get to that let me explain what I have done thus far.
I have two RESTful controllers, CartController and CartItemsController
with a nested routes setup like so
map.resources :carts do |carts|
carts.resources :cart_items, :collection => {:empty => :delete}
end
(I added a custom route to the for emptying the cart as it seemed to me
that when I clear the cart I am operating on the items which is why I
add...