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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
53a1f0aba6f0489d49f5e6fc3df323fa?d=identicon&s=25 Robert James (robertjames)
on 2007-07-19 03: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.