When I run my functional tests, I get (pasted from cygwin):
Started
.E…DEPRECATION WARNING: @flash is deprecated! Call flash.[] instead of
@flash.[
]. Args: [:note] See Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. for
details. (called
from _run_rhtml_47app47views47admin47_flash46rhtml at
/home/hgs/aeg_intranet/cse
store/config/…/app/views/admin/_flash.rhtml:2)
DEPRECATION WARNING: @flash is deprecated! Call flash.keys instead of
@flash.keys
. Args: [] See Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. for details.
(called from
_run_rhtml_47app47views47admin47_flash46rhtml at
/home/hgs/aeg_intranet/csestore/
config/…/app/views/admin/_flash.rhtml:5)
DEPRECATION WARNING: @flash is deprecated! Call flash.each_pair instead
of @flash
.each_pair. Args: [] See Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. for
details. (ca
lled from _run_rhtml_47app47views47admin47_flash46rhtml at
/home/hgs/aeg_intranet
/csestore/config/…/app/views/admin/_flash.rhtml:7)
And when I look at the file I have:
------8<----------------------------------------
<% if flash[:note] && ! flash[:note].empty? -%>
Flash note:
<%= h(flash[:note]) %><% end -%>
<% if ! flash.keys.empty? -%>
Flash:
<%= k.to_s + ":
" + v.to_s -%>
<%} %>
<% end %>
------8<----------------------------------------
What @ signs? I’ve just taken them out. What’s the correct way to get
rid of these warnings? I’m using the flash stuff for debugging at the
moment,
but nonetheless I’d like to do this right.
This is under Rails 1.2.3 on cygwin (with MySQL).
Thank you,
Hugh