my solution is to add one line
flash[:notice]=nil
in the view that display the message
On 7/3/06, Peter Michaux <petermichaux@gmail.com>
wrote:>
> Hi,
>
> Sometimes I see action code like
>
> def my_action
> flash[:notice] = "Flash notice"
> render
> end
>
> It is even in DHH''s new World of Resources slide show page 22.
With
> this use of flash before render, the user will see the flash for the
> next two visible displays. Am I missing something?
>
> Thanks,
> Peter
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060703/2b0bed57/attachment.html