ActionDispatch::Flash::RequestMethods Ruby on Rails 5.1.2 Module ActionDispatch::Flash::RequestMethods actionpack/lib/action_dispatch/middleware/flash.rb Methods F flash, flash= R reset_session Instance Public methods flash() Link 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. Source: show | on GitHub # 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"]) end flash=(flash) Link Source: show | on GitHub # File actionpack/lib/action_dispatch/middleware/flash.rb, line 51 def flash=(flash) set_header Flash::KEY, flash end reset_session() Link Source: show | on GitHub # File actionpack/lib/action_dispatch/middleware/flash.rb, line 74 def reset_session # :nodoc super self.flash = nil end