From a7173ec27ea833148231dde404186c4d9ae1de39 Mon Sep 17 00:00:00 2001 From: marlena-b Date: Thu, 5 Oct 2023 11:55:56 +0200 Subject: [PATCH] Fix delete button on pets index --- app/views/organizations/pets/index.html.erb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/app/views/organizations/pets/index.html.erb b/app/views/organizations/pets/index.html.erb index 7f4c33e2e..1712a582b 100644 --- a/app/views/organizations/pets/index.html.erb +++ b/app/views/organizations/pets/index.html.erb @@ -121,14 +121,9 @@ Pause applications <% end %> <% end %> - <%= link_to t('general.delete'), url: pet_path(pet), class: 'dropdown-item', - data: - { - turbo_method: :delete, - turbo_confirm: t('.are_you_sure_delete') - } do %> - Delete - <% end %> + <%= button_to pet, method: :delete, class: 'dropdown-item', data: { turbo_confirm: t('.are_you_sure_delete') } do %> + Delete + <% end %>