I have a partial,
_flash.html.haml
- flash.each do |type, value|
.flash{ :class => type.to_s }
= value
Which I'm rendering from a view using
=render :partial => "flash"
Which complains that the flash hash is nil/undefined. However, when I do this:
=render :partial => "flash", :locals => {:flash => flash}
It works.
Why doesn't the partial have access to the flash message?