discard(k=nil) public

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 action
    flash.discard(:warning)    # discard the "warning" entry (it'll still be available for the current action)
Show source
Register or log in to add new notes.