From 34bf27069b243ce46df34dfda7771d274d730428 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Sat, 28 Dec 2024 15:58:41 -0800 Subject: [PATCH] Oops, fix silly routing mistake where I set path twice for same route Ruby 3.3.6 has a warning for this, neat! I apparently didn't notice the `path` option already there at first, and just added a new one. This change shouldn't affect behavior, it just is clearer and removes a warning! --- config/routes.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 1cbebdec..8e464052 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -37,8 +37,7 @@ OpenneoImpressItems::Application.routes.draw do end resources :swf_assets, path: 'swf-assets', only: [:show] scope "rainbow-pool" do - resources :alt_styles, path: 'alt-styles', only: [:index, :edit, :update], - path: 'styles' + resources :alt_styles, path: 'styles', only: [:index, :edit, :update] end resources :pet_types, path: 'rainbow-pool', param: "name", only: [:index, :show] do