Guest User

Untitled

a guest
Jun 21st, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. admin.resources :products,
  2. :collection => {
  3. :sort_by_position => :get,
  4. :sort_by_vendor => :get,
  5. :price_list_csv => :get,
  6. :amazon_csv => :get,
  7. :print_catalog => :get,
  8. :search => :get,
  9. :reorder => :post
  10. } do |products|
  11. products.resources :attributes do |attributes|
  12. attributes.resources :attribute_values
  13. end
  14. products.resources :variants
  15. products.resources :images, :controller => 'product_images', :collection => { :order => :post }
  16. end
  17. admin.products_by_vendor_list 'products/by_vendor', :controller => 'products', :action => 'vendor_list'
  18. admin.products_by_vendor 'products/by_vendor/:id', :controller => 'products', :action => 'vendor_products'
Add Comment
Please, Sign In to add comment