Keeps either the entire current flash or a specific flash entry available for the next action:
flash.keep # keeps the entire flash flash.keep(:notice) # keeps only the "notice" entry, the rest of the flash is discarded
Source Code
# File action_controller/flash.rb, line 94 def keep(k = nil) use(k, false) end
<code/>and<pre/>for code samples.