From 74b1cd586c5a9ff70e831bc0d6543102ba3c02ba Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Tue, 25 Jan 2022 18:27:35 +0000 Subject: [PATCH] Specify method and turbo method so that we also get a delete request --- app/views/layouts/application.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index b958b6584..4055cda6c 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -46,7 +46,7 @@ component.navigation_item(text: 'Your logs', href: case_logs_path) component.navigation_item(text: 'Your organisation', href: "/organisations/#{current_user.organisation.id}") component.navigation_item(text: 'Your account', href: user_path(current_user)) - component.navigation_item(text: 'Sign out', href: destroy_user_session_path, options: { data: {turbo_method: :delete} }) + component.navigation_item(text: 'Sign out', href: destroy_user_session_path, options: { data: {turbo_method: :delete}, method: :delete }) end end %>