ActionController::Flash
Constants
KEY = "crails_flash"
Constructors
new(cookies : Cookies)
SourceInstance methods
Read the flash; reading marks the key used (Rails: sweep) — a value shown in the current request is not repeated on the next one.
Rails-семантика: значение видно в текущем запросе (рендер без редиректа) И переносится на следующий, если его не прочитали.
Rails: discard удаляет ключ целиком — и из текущего показа, и из переноса на следующий запрос.