Fix ticket selection controller to use Rails-generated URLs instead of hardcoded paths
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user