Disable Turbo on announcement forms

This commit is contained in:
Andreas Nedbal 2022-11-20 18:59:34 +01:00 committed by Andreas Nedbal
parent 54e157ec76
commit 9bd9c7af9f
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
.card
.card-body
= bootstrap_form_for(@announcement, url: { action: "update" }, method: "PATCH") do |f|
= bootstrap_form_for(@announcement, url: { action: "update" }, method: "PATCH", data: { turbo: false }) do |f|
.row
.col-md-12
= f.text_area :content

View file

@ -1,6 +1,6 @@
.card
.card-body
= bootstrap_form_for(@announcement, url: { action: "create" }) do |f|
= bootstrap_form_for(@announcement, url: { action: "create" }, data: { turbo: false }) do |f|
.row
.col-md-12
= f.text_area :content