From 08a727d6fba4bf22f7eb9c55c0ae8a3953463c49 Mon Sep 17 00:00:00 2001 From: JG Date: Thu, 16 Jun 2022 17:05:07 +0100 Subject: [PATCH] posting to create --- app/views/schemes/new.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/schemes/new.html.erb b/app/views/schemes/new.html.erb index e334c7743..b5711f1a9 100644 --- a/app/views/schemes/new.html.erb +++ b/app/views/schemes/new.html.erb @@ -7,7 +7,7 @@ ) %> <% end %> -<%= form_for(@resource, as: :scheme, html: { method: :post }) do |f| %> +<%= form_for(@resource, as: :scheme, method: :post, url: schemes_path(scheme: @resource)) do |f| %>
<%= f.govuk_error_summary %>