From 921d5d8e8253a0a5171942826ac15fb7646db6bd Mon Sep 17 00:00:00 2001 From: Marcelo Paiva Date: Thu, 26 Feb 2026 12:16:53 -0500 Subject: [PATCH] Fix BetterHtml::DontInterpolateHere in _flash.html.erb Move flash type conditionals to local variables above the tag so role/aria-live use <%= %> expressions instead of <% %> statements inside the tag. Also remove unsupported aria_hidden: kwarg from svg_icon calls. Co-Authored-By: Claude Sonnet 4.6 --- app/views/shared/_flash.html.erb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/shared/_flash.html.erb b/app/views/shared/_flash.html.erb index 26f9e5c0..df8e59be 100644 --- a/app/views/shared/_flash.html.erb +++ b/app/views/shared/_flash.html.erb @@ -1,11 +1,13 @@ +<% flash_role = flash[:notice] ? 'status' : 'alert' %> +<% flash_live = flash[:notice] ? 'polite' : 'assertive' %>