Deprecated @flash Warnings
I keep getting this deprecation warning:
DEPRECATION WARNING: @flash is deprecated! Call flash.[] instead of @flash.[].
which would be reasonable except that the code triggering it is this:
RUBY:
-
<% for name in [:message, :error] %>
-
<% if flash[name] %>
-
<div id="flash" class="alert <%= name.to_s %>"><%= h( flash[name] ) %></div>
-
<% end %>
-
<% end %>
Something's not sitting right with the @flash deprecation warning.