In one controller I have
flash[:error] = "Message"
redirect_to :root
The :root is handled by another controller, the view has
<% if flash[:error] %>
<p><%= flash[:error] %></p>
<% end %>
But nothing is being shown. I inserted <%= debug controller.session %>, here's what I got
"flash"=>#<ActionDispatch::Flash::FlashHash:0x2e79208 @used=#<Set: {}>, @closed=false, @flashes={}, @now=nil>}
What did I do wrong?