<% 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 %>
<% if type == "notice" %>
<% elsif type == "success" %>
<% elsif type == "error" %>
<% elsif type == "alert" %>
<% end %>