From cfd3e7aecd52fa89ae42cd6fd34c0db475566294 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Thu, 8 Jan 2026 23:59:33 -0500 Subject: [PATCH] Fixed create new backup link syntax for turbo_method and made the assign_next_match button a turbo_method --- app/views/tournament_backups/index.html.erb | 2 +- app/views/tournaments/show.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/tournament_backups/index.html.erb b/app/views/tournament_backups/index.html.erb index 7fcd9dd..dedf592 100644 --- a/app/views/tournament_backups/index.html.erb +++ b/app/views/tournament_backups/index.html.erb @@ -8,7 +8,7 @@ and will also delete all of your current data. It's best to use the create backu Backup Created At Backup Reason - <%= link_to ' Create New Backup', tournament_tournament_backups_path(@tournament), turbo_method: :post, class: 'fas fa-plus'%> + <%= link_to ' Create New Backup', tournament_tournament_backups_path(@tournament), data: { turbo_method: :post }, class: 'fas fa-plus'%> diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb index 7b5cc0a..bd3cf83 100644 --- a/app/views/tournaments/show.html.erb +++ b/app/views/tournaments/show.html.erb @@ -131,7 +131,7 @@ <% if can? :manage, @tournament %> <%= link_to '', mat, data: { turbo_method: :delete, turbo_confirm: "Are you sure you want to delete Mat #{mat.name}?" }, :class=>"fas fa-trash-alt" %> - <%= link_to '', "/mats/#{mat.id}/assign_next_match", method: :post, :class=>"fas fa-solid fa-arrow-right" %> + <%= link_to '', "/mats/#{mat.id}/assign_next_match", data: { turbo_method: :post }, :class=>"fas fa-solid fa-arrow-right" %> <% end %>