discard

discard(k = nil)
Instance Public methods

Marks the entire flash or a single flash entry to be discarded by the end of the current action:

1
2
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
doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.