Marks the entire flash or a single flash entry to be discarded by the end of the current action:
flash.discard # discard the entire flash at the end of the current action flash.discard(:warning) # discard only the "warning" entry at the end of the current action
Source Code
# File action_controller/flash.rb, line 102 def discard(k = nil) use(k) end
<code/>and<pre/>for code samples.