HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-3.0.2/doc/actionpack-6.1.4.1/ri/ActionDispatch/Flash/FlashHash/now-i.ri
U:RDoc::AnyMethod[iI"now:ETI")ActionDispatch::Flash::FlashHash#now;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"USets a flash that will not be available to the next action, only to the current.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"2flash.now[:message] = "Hello current action"
;T:@format0o;
;	[	I"YThis method enables you to use the flash as a central messaging system in your app. ;TI"kWhen you need to pass an object to the next action, you use the standard flash assign (<tt>[]=</tt>). ;TI"gWhen you need to pass an object to the current action, you use <tt>now</tt>, and your object will ;TI",vanish when the current action is done.;T@o;
;	[I"jEntries set via <tt>now</tt> are accessed the same way as standard entries: <tt>flash['my-key']</tt>.;T@o;
;	[I",Also, brings two convenience accessors:;T@o;;	[
I"%flash.now.alert = "Beware now!"
;TI"7# Equivalent to flash.now[:alert] = "Beware now!"
;TI"
;TI")flash.now.notice = "Good luck now!"
;TI":# Equivalent to flash.now[:notice] = "Good luck now!";T;
0:
@fileI",lib/action_dispatch/middleware/flash.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@%FI"FlashHash;TcRDoc::NormalClass00