Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
Rails.application.routes.draw do
|
|
|
|
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
|
|
|
|
get "about", to: "about#index"
|
|
|
|
get "/", to: "test#index"
|
|
|
|
|
|
|
|
form = Form.new(2021, 2022)
|
|
|
|
resources :case_logs do
|
|
|
|
form.all_pages.keys.map do |page|
|
|
|
|
get page.to_s, to: "case_logs##{page}"
|
|
|
|
post page.to_s, to: "case_logs#next_page"
|
|
|
|
form.all_subsections.keys.map do |subsection|
|
|
|
|
get "#{subsection}/check_answers", to: "case_logs#check_answers"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|