From 000c6452e29dfcfc4dc939cc9bbb33b7f484f60a Mon Sep 17 00:00:00 2001 From: moveson Date: Fri, 20 Sep 2024 17:47:27 -0600 Subject: [PATCH] Fix Disassociate button by using button_to --- app/views/efforts/_efforts_list_person.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/efforts/_efforts_list_person.html.erb b/app/views/efforts/_efforts_list_person.html.erb index dbf1a3cd0..94f134f78 100644 --- a/app/views/efforts/_efforts_list_person.html.erb +++ b/app/views/efforts/_efforts_list_person.html.erb @@ -23,7 +23,7 @@ <%= l(effort.event.scheduled_start_time.to_date, format: :full_with_weekday) %> <%= text_with_status_indicator(effort.finish_status, effort.data_status, data_type: :effort_time_data) %> <% if current_user&.admin? %> - <%= link_to "Disassociate", + <%= button_to "Disassociate", effort_path(effort, effort: { person_id: nil }, button: :disassociate,