Sha256: 83c664795c6a90c00466584749c3151f0a0ced9decf2593ad459fe11ceb2003d
Contents?: true
Size: 824 Bytes
Versions: 31
Compression:
Stored size: 824 Bytes
Contents
ActionController::Routing::Routes.draw do |map| map.namespace :admin do |admin| admin.namespace :shop, :member => { :remove => :get } do |shop| shop.resources :categories, :collection => { :sort => :put }, :member => { :products => :get } do |category| category.resources :products, :only => :new end shop.resources :products, :except => :new, :collection => { :sort => :put } do |product| product.resources :images, :controller => 'products/images', :only => [:index, :create, :destroy], :collection => { :sort => :put } end shop.resources :customers shop.resources :orders, :except => [ :destroy ], :collection => { :export => :get } end admin.resources :shops, :as => 'shop', :only => [ :index ] end end
Version data entries
31 entries across 31 versions & 1 rubygems