From 71916fcb2918523516018eb7be846554d0299146 Mon Sep 17 00:00:00 2001 From: Sam Seed Date: Thu, 17 Nov 2022 14:14:10 +0000 Subject: [PATCH] refactor: use Rails routes in all places in locations index page --- app/views/locations/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/locations/index.html.erb b/app/views/locations/index.html.erb index 9b29aa72b..812296be8 100644 --- a/app/views/locations/index.html.erb +++ b/app/views/locations/index.html.erb @@ -101,7 +101,7 @@ <%= simple_format(location.type_of_unit) %> <% end %> <% row.cell(text: location.mobility_type) %> - <% row.cell(text: simple_format(location_cell_location_admin_district(location, "#{scheme_location_path(@scheme, location)}/edit-local-authority"), wrapper_tag: "div")) %> + <% row.cell(text: simple_format(location_cell_location_admin_district(location, scheme_location_edit_local_authority_path(@scheme, location)), wrapper_tag: "div")) %> <% row.cell(text: location.startdate&.to_formatted_s(:govuk_date)) %> <% end %> <% end %>