Displaying 3 results from an estimated 3 matches for "_flash".
Did you mean:
flash
2008 Mar 21
0
Info: _flash.html.erb partial a bad idea
I guess a partial creates a variable by the same name. I wrote a simple
partial called _flash.html.erb in which I display the flash errors and
warnings. But, inside that partial, flash was defined but set to nil.
Renaming the partial to _display_flash.html.erb resolved the issue.
HTH
pedz
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You...
2010 Sep 02
0
controller failing to read flash
...d that disparity occur?
# Access the contents of the flash. Use <tt>flash["notice"]</tt> to
# read a notice you put there or <tt>flash["notice"] =
"hello"</tt>
# to put a new one.
def flash #:doc:
if !defined?(@_flash)
@_flash = session["flash"] || FlashHash.new
@_flash.sweep
end
@_flash
end
Thanks!
Andrew
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, se...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply
to this email, as some of the replaced lines are too long, so git
won't let me send the email. However, there is nothing wrong with
that patch, and it should be applied in the sequence listed below.
Note also that I assume this will be tested on a clean f11 install, rather
than an upgrade of an existing ovirt server