Forum: Ruby on Rails Solution to the Back button / double flash problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Robert J. (Guest)
on 2007-07-19 05:01
(Received via mailing list)
Often you use flash to show a one time only status message (like "Your
account has been billed $21.50").  The problem being that when the
user goes on to another page, and hits back, they see it again, and
often get worried.  Is there anyway to ensure that flash is displayed
only the first time, and not after hitting Back?  (Perhaps using
JavaScript to detect this...)
This topic is locked and can not be replied to.