Convert route to resource

I don't know why the route helper now has "index" in the name.
This commit is contained in:
David Cook
2023-07-13 15:01:00 +10:00
committed by Jean-Baptiste Bellet
parent 364ae5c0c6
commit 8949f1dc2e
2 changed files with 2 additions and 2 deletions

View File

@@ -5,4 +5,4 @@
= tab :variant_overrides, url: main_app.admin_inventory_path, match_path: '/inventory'
= tab :import, url: main_app.admin_product_import_path, match_path: '/product_import'
- if feature?(:admin_style_v3, spree_current_user)
= tab :products_v3, url: main_app.admin_products_v3_path
= tab :products_v3, url: main_app.admin_products_v3_index_path

View File

@@ -70,7 +70,7 @@ Openfoodnetwork::Application.routes.draw do
post '/product_import/reset_absent', to: 'product_import#reset_absent_products', as: 'product_import_reset_async'
constraints FeatureToggleConstraint.new(:admin_style_v3) do
get '/products_v3', to: 'products_v3#index'
resources :products_v3, only: :index
end
resources :variant_overrides do