Browse Source

make check answer header dynamic

pull/25/head
MadeTech Dushan 3 years ago
parent
commit
023f1f66e3
  1. 2
      app/controllers/case_logs_controller.rb

2
app/controllers/case_logs_controller.rb

@ -44,7 +44,7 @@ class CaseLogsController < ApplicationController
current_url = request.env["PATH_INFO"]
subsection = current_url.split("/")[-2]
subsection_pages = form.pages_for_subsection(subsection)
render "form/check_answers", locals: { case_log: @case_log, subsection_pages: subsection_pages, subsection: subsection }
render "form/check_answers", locals: { case_log: @case_log, subsection_pages: subsection_pages, subsection: subsection.humanize(capitalize: false) }
end
form = Form.new(2021, 2022)

Loading…
Cancel
Save