Browse Source

Don't nest check answers routes in pages (#42)

pull/47/head
Daniel Baark 3 years ago committed by GitHub
parent
commit
2f7cb34e5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      config/routes.rb

2
config/routes.rb

@ -9,9 +9,9 @@ Rails.application.routes.draw do
resources :case_logs do resources :case_logs do
form.all_pages.keys.map do |page| form.all_pages.keys.map do |page|
get page.to_s, to: "case_logs##{page}" get page.to_s, to: "case_logs##{page}"
end
form.all_subsections.keys.map do |subsection| form.all_subsections.keys.map do |subsection|
get "#{subsection}/check_answers", to: "case_logs#check_answers" get "#{subsection}/check_answers", to: "case_logs#check_answers"
end end
end end
end
end end

Loading…
Cancel
Save