Skip to main content

Module flash

Module flash 

Source
Expand description

Flash messages: values set on one request and read on exactly the next one.

The flash is carried between requests in a signed cookie (reusing CookieSessionStore). Because the next request does not re-write it unless new messages are set, a flash naturally lives for a single following request (Rails’ flash[:notice]).

Structs§

Flash
A bag of one-shot messages keyed by name (e.g. notice, alert).