From 0c9a6baf2fd09d1565033f0bcd3a394b6cec9678 Mon Sep 17 00:00:00 2001 From: Jeffrey Hardy Date: Tue, 13 Aug 2024 13:39:04 -0400 Subject: [PATCH] Modernize route syntax Hash key path mapping is deprecated in: https://github.com/rails/rails/pull/52422 --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index b6deb26ee..7a06a201d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -8,5 +8,5 @@ Rails.application.routes.draw do resources :categories, only: %i[new create] end - get "up" => "rails/health#show", as: :rails_health_check + get "up", to: "rails/health#show", as: :rails_health_check end