From 3b98c7c16af319d5e5514e78c969e112f5f67515 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Tue, 9 Nov 2021 17:21:55 +0000 Subject: [PATCH] Route constraint --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index f6cb3122c..3fada4f5e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,7 +4,7 @@ Rails.application.routes.draw do root to: "test#index" get "about", to: "about#index" - post "/case_logs/:id", to: "case_logs#submit_form", constraints: { id: /\d/ } + post "/case_logs/:id", to: "case_logs#submit_form", constraints: { id: /\d.+/ } post "/case_logs/bulk_upload", to: "bulk_upload#process_bulk_upload" get "/case_logs/bulk_upload", to: "bulk_upload#show"