From 96c0d5dbe9aaf76d5ebaa333bb8cb08cc5c2c040 Mon Sep 17 00:00:00 2001 From: Samuel Culley Date: Fri, 17 Jul 2026 10:09:37 +0100 Subject: [PATCH] wip --- app/controllers/forms/add_another_answer_controller.rb | 6 +++--- app/controllers/forms/review_file_controller.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/forms/add_another_answer_controller.rb b/app/controllers/forms/add_another_answer_controller.rb index 748ab00d7..938b05fae 100644 --- a/app/controllers/forms/add_another_answer_controller.rb +++ b/app/controllers/forms/add_another_answer_controller.rb @@ -4,13 +4,13 @@ class AddAnotherAnswerController < StepController def show @rows = rows - back_link(@step.id) + @back_link = back_link(@step.id) @add_another_answer_input = AddAnotherAnswerInput.new end def change @rows = rows - back_link(@step.id) + @back_link = back_link(@step.id) @add_another_answer_input = AddAnotherAnswerInput.new render :show end @@ -20,7 +20,7 @@ def save if @add_another_answer_input.invalid? @rows = rows - back_link(@step.id) + @back_link = back_link(@step.id) return render :show end diff --git a/app/controllers/forms/review_file_controller.rb b/app/controllers/forms/review_file_controller.rb index 810147313..274387b1a 100644 --- a/app/controllers/forms/review_file_controller.rb +++ b/app/controllers/forms/review_file_controller.rb @@ -3,7 +3,7 @@ class ReviewFileController < StepController before_action :redirect_if_not_answered_file_question def show - back_link(@step.id) + @back_link = back_link(@step.id) @remove_file_confirmation_url = remove_file_confirmation_path(form_id: @form.id, form_slug: @form.form_slug, step_slug: @step.id, changing_existing_answer:) @continue_url = review_file_continue_path(form_id: @form.id, form_slug: @form.form_slug, step_slug: @step.id, changing_existing_answer:) end