Sha256: 2dcb1575aa407da5c8231689fcfa2ce49ebc97404e6e856aa5876b6c7b1a18af
Contents?: true
Size: 341 Bytes
Versions: 2
Compression:
Stored size: 341 Bytes
Contents
SimpleCart::Engine.routes.draw do resource :cart, only: [:show, :destroy, :update] do get :clear get :remove post :checkout post ':item_id' => 'carts#add', as: :add_to end resources :orders, only: [:index, :show, :update] do resources :checkout, only: [:index, :show, :update] end root to: 'carts#show' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_cart-0.0.3 | config/routes.rb |
simple_cart-0.0.2 | config/routes.rb |