From 20ff5940147be9e4b9bd48db11dd0efcb2e32e0c Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sat, 14 Aug 2021 20:21:10 +0100 Subject: [PATCH] Set data-remote on checkout form --- app/views/split_checkout/_form.html.haml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/split_checkout/_form.html.haml b/app/views/split_checkout/_form.html.haml index ebe564b3b5..49469f4e7d 100644 --- a/app/views/split_checkout/_form.html.haml +++ b/app/views/split_checkout/_form.html.haml @@ -2,5 +2,7 @@ = inject_saved_credit_cards %div.checkout-step - = form_with url: checkout_update_path(checkout_step), model: @order, method: :put do |f| - = render "split_checkout/#{checkout_step}", f: f + = form_with url: checkout_update_path(checkout_step), model: @order, method: :put, + data: { remote: "true" } do |form| + + = render "split_checkout/#{checkout_step}", f: form