Fix flash.now messages not displaying in benefit forms view

Changed flash message check to include both flash and flash.now since
error messages use flash.now when re-rendering without redirect.

This ensures validation error messages display immediately when users
upload invalid files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ken Johnson
2025-12-11 13:30:12 +00:00
parent 635d45d790
commit 004cf1e863
+2 -2
View File
@@ -1,9 +1,9 @@
<div class="container-fluid">
<!-- Flash Messages -->
<% if flash.any? %>
<% if flash.any? || flash.now.any? %>
<div class="row mb-3">
<div class="col-12">
<% flash.each do |name, msg| %>
<% (flash.to_hash.merge(flash.now.to_hash)).each do |name, msg| %>
<%
alert_class = case name.to_sym
when :error, :alert then 'alert-danger'