<% if flash.keys.length > 0 %>
  <div class="flash">
    <% flash.each do |name, msg| %>
      <div class="alert alert-<%= name.to_sym == :notice ? "success" : "error" %>">
        <a class="close" data-dismiss="alert">&#215;</a>
        <%= content_tag :div, msg, :id => "flash_#{name}" if msg.is_a?(String) %>
      </div>
    <% end %>
  </div>
<% end %>
