From 2c9caf3205e2cae76648b49e2c9d9bcb0a8e639a Mon Sep 17 00:00:00 2001 From: kbe Date: Sat, 6 Sep 2025 03:23:21 +0200 Subject: [PATCH] Fix ticket selection controller to use Rails-generated URLs instead of hardcoded paths --- app/views/orders/checkout.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/orders/checkout.html.erb b/app/views/orders/checkout.html.erb index 2e3db3a..2a7219f 100644 --- a/app/views/orders/checkout.html.erb +++ b/app/views/orders/checkout.html.erb @@ -212,7 +212,7 @@ try { // Increment payment attempt counter console.log('Incrementing payment attempt for order:', '<%= @order.id %>'); - const response = await fetch('<%= increment_payment_attempt_order_path(@order) %>', { + const response = await fetch('<%= order_increment_payment_attempt_path(@order) %>', { method: 'POST', headers: { 'X-CSRF-Token': document.querySelector('meta[name="csrf-token"]').getAttribute('content'),