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| %>