From 2f7cb34e5c2725c7227b34eff21a9a9ff0c864a9 Mon Sep 17 00:00:00 2001 From: Daniel Baark <5101747+baarkerlounger@users.noreply.github.com> Date: Tue, 12 Oct 2021 14:09:45 +0100 Subject: [PATCH] Don't nest check answers routes in pages (#42) --- config/routes.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 4f9db913d..1d341ef6b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -9,9 +9,9 @@ Rails.application.routes.draw do resources :case_logs do form.all_pages.keys.map do |page| get page.to_s, to: "case_logs##{page}" - form.all_subsections.keys.map do |subsection| - get "#{subsection}/check_answers", to: "case_logs#check_answers" - end + end + form.all_subsections.keys.map do |subsection| + get "#{subsection}/check_answers", to: "case_logs#check_answers" end end end