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

Version Path
radiant-shop-extension-0.94.8 config/routes.rb
radiant-shop-extension-0.94.7 config/routes.rb
radiant-shop-extension-0.94.6 config/routes.rb
radiant-shop-extension-0.94.5 config/routes.rb
radiant-shop-extension-0.94.4 config/routes.rb
radiant-shop-extension-0.94.3 config/routes.rb
radiant-shop-extension-0.94.2 config/routes.rb
radiant-shop-extension-0.94.1 config/routes.rb
radiant-shop-extension-0.94.0 config/routes.rb
radiant-shop-extension-0.93.3 config/routes.rb
radiant-shop-extension-0.93.2 config/routes.rb
radiant-shop-extension-0.93.1 config/routes.rb
radiant-shop-extension-0.93.0 config/routes.rb
radiant-shop-extension-0.92.11 config/routes.rb
radiant-shop-extension-0.92.10 config/routes.rb
radiant-shop-extension-0.92.9 config/routes.rb
radiant-shop-extension-0.92.8 config/routes.rb
radiant-shop-extension-0.92.7 config/routes.rb
radiant-shop-extension-0.92.6 config/routes.rb
radiant-shop-extension-0.92.3 config/routes.rb