From 4aeaf72c98b21fdee21adc6b6caf4129c216ae27 Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Mon, 23 Sep 2024 12:53:10 +0100 Subject: [PATCH] Do not use underscores in routes --- config/routes.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 52694afae..d1f2403af 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -281,7 +281,7 @@ Rails.application.routes.draw do end end - resources :bulk_uploads, only: [] do + resources :bulk_uploads, path: "bulk-uploads", only: [] do member do get "download", to: "lettings_logs#download_bulk_upload", as: "download_lettings" end @@ -360,9 +360,9 @@ Rails.application.routes.draw do end end - resources :bulk_uploads, only: [] do + resources :bulk_uploads, path: "bulk-uploads", only: [] do member do - get "download", to: "sales_logs#download_bulk_upload", as: "download_sales" + get "download", to: "sales_logs#download_bulk_upload", as: "download-sales" end end end