28 Mar 2007, 2:57pm
/dev/rails
by

5 comments

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:
  1. <% for name in [:message, :error] %>
  2.     <% if flash[name] %>
  3.         <div id="flash" class="alert <%= name.to_s %>"><%= h( flash[name] ) %></div>
  4.     <% end %>
  5. <% end %>

Something's not sitting right with the @flash deprecation warning.