How Rails Flash Survives One Redirect
Rails flash messages are request-to-request state, not view-level notices. This article traces how flash, flash.now, flash.keep, and flash.discard work through the session, and why messages leak, disappear, or bloat CookieStore sessions.
URL: https://railsrevelry.substack.com/p/how-rails-flash-survives-one-redirect?r=4jsb
Post a comment