- if flash.any? #flash - flash.each do |type, message| .flash{ class: type }= message