diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index bac7edc5a..c125850fc 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -1,4 +1,6 @@
class ApplicationController < ActionController::Base
+ default_form_builder GOVUKDesignSystemFormBuilder::FormBuilder
+
def render_not_found_html
render file: Rails.root.join("public/404.html"), status: :not_found
end
diff --git a/app/views/case_logs/bulk_upload.html.erb b/app/views/case_logs/bulk_upload.html.erb
index 02cb109df..86416b4d1 100644
--- a/app/views/case_logs/bulk_upload.html.erb
+++ b/app/views/case_logs/bulk_upload.html.erb
@@ -1,5 +1,5 @@
- <%= form_for @bulk_upload, url: bulk_upload_case_logs_path, method: "post", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %>
+ <%= form_for @bulk_upload, url: bulk_upload_case_logs_path, method: "post" do |f| %>
<%= f.govuk_error_summary %>
<%= f.govuk_file_field :case_log_bulk_upload,
label: { text: "Bulk Upload", size: "l" },
diff --git a/app/views/form/check_answers.html.erb b/app/views/form/check_answers.html.erb
index 447732748..d2a2551d4 100644
--- a/app/views/form/check_answers.html.erb
+++ b/app/views/form/check_answers.html.erb
@@ -8,7 +8,7 @@
<%= render partial: 'form/check_answers_table', locals: { question: question, case_log: @case_log } %>
<% end %>
- <%= form_with model: @case_log, method: "get", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %>
+ <%= form_with model: @case_log, method: "get" do |f| %>
<%= f.govuk_submit "Save and continue" %>
<% end %>
diff --git a/app/views/form/page.html.erb b/app/views/form/page.html.erb
index 744dfa503..d3c4dbc29 100644
--- a/app/views/form/page.html.erb
+++ b/app/views/form/page.html.erb
@@ -16,7 +16,7 @@
<%= page.header %>
<% end %>
- <%= form_with model: @case_log, url: form_case_log_path(@case_log), method: "post", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %>
+ <%= form_with model: @case_log, url: form_case_log_path(@case_log), method: "post" do |f| %>
<%= f.govuk_error_summary %>
<% page.questions.map do |question| %>
<%= display_question_key_div(page, question) %> >