From 281043d3aa17348d4a5e4edb0a16ffe337030de2 Mon Sep 17 00:00:00 2001 From: Sam Seed Date: Tue, 15 Nov 2022 12:57:53 +0000 Subject: [PATCH] feat: simplify "scheme_id: @scheme.id" to "@scheme" --- app/views/locations/index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/locations/index.html.erb b/app/views/locations/index.html.erb index f81c2e141..311673bbc 100644 --- a/app/views/locations/index.html.erb +++ b/app/views/locations/index.html.erb @@ -49,7 +49,7 @@ <% end %> <% end %> <% end %> - <%= govuk_button_link_to "Add a location", new_scheme_location_path(scheme_id: @scheme.id), secondary: true %> + <%= govuk_button_link_to "Add a location", new_scheme_location_path(@scheme), secondary: true %> @@ -105,7 +105,7 @@ <% end %> <% end %> <% end %> - <%= govuk_button_link_to "Add a location", new_scheme_location_path(scheme_id: @scheme.id), secondary: true %> + <%= govuk_button_link_to "Add a location", new_scheme_location_path(@scheme), secondary: true %> <% end %>