app/views/decidim/consultations/admin/consultations/edit.html.erb in decidim-consultations-0.18.1 vs app/views/decidim/consultations/admin/consultations/edit.html.erb in decidim-consultations-0.19.0
- old
+ new
@@ -1,5 +1,8 @@
-<%= decidim_form_for(@form, html: { class: "form edit_consultation" }) do |f| %>
+<%= decidim_form_for @form,
+ method: :patch,
+ url: consultation_path(current_consultation),
+ html: { class: "form edit_consultation" } do |f| %>
<%= render partial: "form", object: f %>
<div class="button--double form-general-submit">
<%= f.submit t("consultations.edit.update", scope: "decidim.admin"), class: "button" %>
<% if allowed_to? :publish, :consultation, consultation: current_consultation %>