Marks the entire flash or a single flash entry to be discarded by the end
of the current action
flash.keep# keep entire flash available for the next actionflash.discard(:warning)# discard the "warning" entry (it'll still be available for the current action)
# File actionpack/lib/action_controller/flash.rb, line 101
def discard(k=nil)
use(k)
end