Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v4.2.9) is shown here.
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