Displaying 1 result from an estimated 1 matches for "_display_flash".
Did you mean:
display_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 received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-...