This method is deprecated or moved on the latest stable version.
The last existing version (v1.0.0) is shown here.
flash(#:doc:)
protected
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.
Note that if sessions are disabled only flash.now will work.
# File actionpack/lib/action_controller/flash.rb, line 141
def flash #:doc:
# @session = Hash.new if sessions are disabled
if @session.is_a?(Hash)
@__flash ||= FlashHash.new
# otherwise, @session is a CGI::Session or a TestSession
else
@session['flash'] ||= FlashHash.new
end
end