From 3eb16a1da07eaf890a92eaa2d0c29c84c6ee336e Mon Sep 17 00:00:00 2001 From: jazairi <16103405+jazairi@users.noreply.github.com> Date: Tue, 28 Jul 2026 15:01:52 -0700 Subject: [PATCH] Disable Turbo for administrate forms Why these changes are being introduced: In Rails 8, Turbo is enabled by default. This causes a big with administrate form submissions where validations don't fire, and the POST fails silently. Relevant ticket(s): - [ETD-691](https://mitlibraries.atlassian.net/browse/ETD-691) How this addresses that need: This adds the `data-turbo=false` attribute to the `body` tag of our custom `admin/application` layout, which disables Turbo in all administrate views. Side effects of this change: We're not leveraging Turbo in administrate, but I'm not sure it would add value anyway. --- app/views/layouts/admin/application.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/admin/application.html.erb b/app/views/layouts/admin/application.html.erb index 75dbe7a5..4e5f098b 100644 --- a/app/views/layouts/admin/application.html.erb +++ b/app/views/layouts/admin/application.html.erb @@ -26,7 +26,7 @@ By default, it renders: <%= csrf_meta_tags %> <%= csp_meta_tag if defined?(csp_meta_tag) %> -
+ <%= render "icons" %>