flash()
public
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 8
def flash
@env[Flash::KEY] ||= Flash::FlashHash.from_session_value(session["flash"])
end