using rails 1.2.3 on windows xp
i have a controller method like so:
flash[:notice] = "error!"
and the layout has:
<% if flash[:notice] -%>
<div class="flash"><%= flash[:notice] %></div>
<% end -%>
the form for index submits via GET method. if i cause the some_error
condition through the form, i get the flash message as expected.
however, if i immediately submit again with conditions that do not
cause some_error, i still get the flash message again. it takes until
submitting a third time for the flash message to clear. isn't it
supposed to clear itself after it renders the first time in the
layout? i know i'm not setting it again because i have a debug
statement when it gets set in the controller.