From 44bd89e43a4f34eb2bff59c8bfb7a39f6e1d7b72 Mon Sep 17 00:00:00 2001 From: JG Date: Thu, 30 Jun 2022 11:04:23 +0100 Subject: [PATCH] added route to locations controller --- app/controllers/schemes_controller.rb | 2 +- config/routes.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/schemes_controller.rb b/app/controllers/schemes_controller.rb index 4dd657534..0f7690132 100644 --- a/app/controllers/schemes_controller.rb +++ b/app/controllers/schemes_controller.rb @@ -100,7 +100,7 @@ private when "secondary-client-group" scheme_support_path(@scheme) when "support" - scheme_check_answers_path(@scheme) + location_new_scheme_path when "details" scheme_primary_client_group_path(@scheme) end diff --git a/config/routes.rb b/config/routes.rb index 0cbaa82c2..e8868c3f7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -45,6 +45,7 @@ Rails.application.routes.draw do member do get "locations", to: "schemes#locations" + get "location/new", to: "locations#new" end end