Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- admin.resources :products,
- :collection => {
- :sort_by_position => :get,
- :sort_by_vendor => :get,
- :price_list_csv => :get,
- :amazon_csv => :get,
- :print_catalog => :get,
- :search => :get,
- :reorder => :post
- } do |products|
- products.resources :attributes do |attributes|
- attributes.resources :attribute_values
- end
- products.resources :variants
- products.resources :images, :controller => 'product_images', :collection => { :order => :post }
- end
- admin.products_by_vendor_list 'products/by_vendor', :controller => 'products', :action => 'vendor_list'
- admin.products_by_vendor 'products/by_vendor/:id', :controller => 'products', :action => 'vendor_products'
Add Comment
Please, Sign In to add comment