<% flash.each do |message_type, message| %>
    <div class="alert alert-<%= message_type %>"><%= message %></div>
<% end %>

<% flash.each do |message_type, message| %>
    <div class="alert alert-<%= message_type %>">
      <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      <%= message %>
    </div>
<% end %>

Allow error messages to be dismissed
Allow error messages to be dismissed
