Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (8 sloc) 535 Bytes
# Put your extension routes here.
map.namespace :admin do |admin|
admin.resources :products, :collection => { :reorder => :any, :order_products => :any }, :has_many => [:product_properties, :images] do |product|
product.resources :variants
product.resources :option_types, :member => {:select => :get, :remove => :get}, :collection => {:available => :get, :selected => :get}
product.resources :taxons, :member => {:select => :post, :remove => :post}, :collection => {:available => :post, :selected => :get}
end
end