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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs