ActionDispatch::Flash::RequestMethods

module ActionDispatch::Flash::RequestMethods

Public Instance Methods

flash() Show source

Access the contents of the flash. Use flash["notice"] to read a notice you put there or flash["notice"] = "hello" to put a new one.

# File actionpack/lib/action_dispatch/middleware/flash.rb, line 45
def flash
  flash = flash_hash
  return flash if flash
  self.flash = Flash::FlashHash.from_session_value(session["flash"])