I have a partial,
_flash.html.haml
- flash.each do |type, value|
.flash{ :class => type.to_s }
= value
Which I\'m re
This will also achieve your desired result:
<%= render partial: "flash", object: flash %>
The flash object is being passed to the admin/shared/flash partial as flash, since the partial is called flash. You'll have access to the flash object from within the partial as you'd expect it in any regular view.