From 374cb7e971479b6608355246b93e926d61d0f5b7 Mon Sep 17 00:00:00 2001 From: Rob Law Date: Mon, 12 Aug 2024 20:26:28 -0400 Subject: [PATCH] Update routes in preparation for rails 8. --- config/routes.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 9663d08..679fc8b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,7 @@ AhoyCaptain::Engine.routes.draw do root to: 'roots#show' %w{utm_source utm_medium utm_term utm_content utm_campaign}.each do |utm| - get "campaigns/#{utm}" => "campaigns#index", defaults: { campaigns_type: utm }, as: "campaign_#{utm}" + get "campaigns/#{utm}", to: "campaigns#index", defaults: { campaigns_type: utm }, as: "campaign_#{utm}" end { @@ -9,7 +9,7 @@ operating_systems: :os, device_types: :device_type }.each do |k,v| - get "/devices/#{k}" => 'devices#index', defaults: { devices_type: v }, as: "devices_#{k}" + get "/devices/#{k}", to: 'devices#index', defaults: { devices_type: v }, as: "devices_#{k}" end namespace :locations do @@ -41,11 +41,11 @@ end namespace :filters do %w{source medium term content campaign}.each do |utm| - get "utm/#{utm}s" => "utms#index", defaults: { type: "utm_#{utm}" } + get "utm/#{utm}s", to: "utms#index", defaults: { type: "utm_#{utm}" } end %w{country region city}.each do |type| - get "locations/#{type.pluralize}" => "locations#index", defaults: { type: type } + get "locations/#{type.pluralize}", to: "locations#index", defaults: { type: type } end namespace :properties do