Fix ticket selection controller to use Rails-generated URLs instead of hardcoded paths

This commit is contained in:
kbe
2025-09-06 03:23:21 +02:00
parent 2f799936c5
commit 2c9caf3205

View File

@@ -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'),