<% if flash.any? %>
<% flash.each do |type, message| %> <% alert_class = case type when "notice" then "alert alert-blue" when "success" then "alert alert-green" when "error" then "alert alert-red" when "alert" then "alert alert-yellow" else "alert alert-default" end %> <% end %>
<% end %>