From 31b745e972c684f10e78af0ac8e5f48df1e6cfbf Mon Sep 17 00:00:00 2001 From: Marcelo Paiva Date: Wed, 25 Feb 2026 22:51:38 -0500 Subject: [PATCH] Fix BetterHtml::DontInterpolateHere in turbo modal partials Replace raw String interpolation of aria-labelledby attribute with inline quoted attribute interpolation, which BetterHtml permits. Always render the attribute since the ID is always generated; a reference to a non-existent element is harmless when no title is set. Co-Authored-By: Claude Sonnet 4.6 --- app/views/shared/_turbo_modal.html.erb | 2 +- app/views/shared/_turbo_modal_large.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/shared/_turbo_modal.html.erb b/app/views/shared/_turbo_modal.html.erb index e2bdfaa9..553f665f 100644 --- a/app/views/shared/_turbo_modal.html.erb +++ b/app/views/shared/_turbo_modal.html.erb @@ -1,6 +1,6 @@ <% modal_title_id = "modal_title_#{SecureRandom.hex(4)}" %> - > +