instance method keep

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

keep(k = nil)

Keeps either the entire current flash or a specific flash entry available for the next action:

flash.keep            # keeps the entire flash
flash.keep(:notice)   # keeps only the "notice" entry, the rest of the flash is discarded

Parameters

k opt = nil
Source
# File actionpack/lib/action_controller/flash.rb, line 93
      def keep(k = nil)
        use(k, false)
      end

Defined in actionpack/lib/action_controller/flash.rb line 93 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Flash::FlashHash

Type at least 2 characters to search.

↑↓ navigate · open · esc close