|
|
@ -30,10 +30,10 @@ Rails.application.routes.draw do |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
resources :case_logs do |
|
|
|
resources :case_logs, :path => '/case-logs' do |
|
|
|
collection do |
|
|
|
collection do |
|
|
|
post "/bulk_upload", to: "bulk_upload#bulk_upload" |
|
|
|
post "/bulk-upload", to: "bulk_upload#bulk_upload" |
|
|
|
get "/bulk_upload", to: "bulk_upload#show" |
|
|
|
get "/bulk-upload", to: "bulk_upload#show" |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
member do |
|
|
|
member do |
|
|
@ -41,12 +41,12 @@ Rails.application.routes.draw do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
form.pages.map do |page| |
|
|
|
form.pages.map do |page| |
|
|
|
get page.id.to_s, to: "case_logs##{page.id}" |
|
|
|
get page.id.to_s.dasherize, to: "case_logs##{page.id}" |
|
|
|
get "#{page.id}/soft_validations", to: "soft_validations#show" if page.has_soft_validations? |
|
|
|
get "#{page.id.to_s.dasherize}/soft-validations", to: "soft_validations#show" if page.has_soft_validations? |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
form.subsections.map do |subsection| |
|
|
|
form.subsections.map do |subsection| |
|
|
|
get "#{subsection.id}/check_answers", to: "case_logs#check_answers" |
|
|
|
get "#{subsection.id.to_s.dasherize}/check-answers", to: "case_logs#check_answers" |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|