From 121ab174bb5cc2fb4537d5b38c8c6a1c319137c3 Mon Sep 17 00:00:00 2001 From: Kat Date: Wed, 3 Aug 2022 14:53:58 +0100 Subject: [PATCH] update location path --- app/views/locations/edit.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/locations/edit.html.erb b/app/views/locations/edit.html.erb index 77eb96bb4..361e050ef 100644 --- a/app/views/locations/edit.html.erb +++ b/app/views/locations/edit.html.erb @@ -9,7 +9,7 @@ <%= render partial: "organisations/headings", locals: { main: "Add a location to this scheme", sub: @scheme.service_name } %> -<%= form_for(@location, method: :patch, url: location_path(location_id: @location.id)) do |f| %> +<%= form_for(@location, method: :patch, url: location_path(@location)) do |f| %>
<%= f.govuk_error_summary %>