From 5fe3aa5dae5056300155db13ba492fc2a6af29ef Mon Sep 17 00:00:00 2001 From: Jonathan Rochkind Date: Wed, 4 Dec 2024 16:17:01 -0500 Subject: [PATCH] fix resourceful routing paths to be acceptable to stricter Rails8 can no longer mention paths that didn't apply anyway, it raises now. --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index e865a8b48..cad117ac2 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -226,7 +226,7 @@ def self.matches?(request) # TODO: Can we get away without actuallymounting Blacklight, just using the CatalogController? # mount Blacklight::Engine => '/' concern :searchable, Blacklight::Routes::Searchable.new - resource :catalog, only: [:index], as: 'catalog', path: '/catalog', controller: 'catalog' do + resource :catalog, only: [], as: 'catalog', path: '/catalog', controller: 'catalog' do concerns :searchable concerns :range_searchable # for blacklight_range_limit end @@ -345,7 +345,7 @@ def self.matches?(request) #Cart: - resources :cart_items, param: :work_friendlier_id, only: [:index, :update, :destroy, :report] do + resources :cart_items, param: :work_friendlier_id, only: [:index, :update, :destroy] do collection do delete 'clear' post 'report'