class FlashIntegrationTest::TestController
Public Instance Methods
set_bar()
click to toggle source
# File actionpack/test/controller/flash_test.rb, line 264 def set_bar flash[:bar] = "for great justice" head :ok end
set_flash()
click to toggle source
# File actionpack/test/controller/flash_test.rb, line 250 def set_flash flash["that"] = "hello" head :ok end
set_flash_now()
click to toggle source
# File actionpack/test/controller/flash_test.rb, line 255 def set_flash_now flash.now["that"] = "hello" head :ok end
set_flash_optionally()
click to toggle source
# File actionpack/test/controller/flash_test.rb, line 269 def set_flash_optionally flash.now.notice = params[:flash] if stale? etag: "abe" render inline: "maybe flash" end end
use_flash()
click to toggle source
# File actionpack/test/controller/flash_test.rb, line 260 def use_flash render inline: "flash: #{flash["that"]}" end