method

discard

Importance_1
v1.1.6 - Show latest stable - 0 notes - Class: ActionController::Flash::FlashHash
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.