Adopted to reflect changes made in bootstrap3:
<% if object.errors.any? %> <div class="alert fade in alert-danger alert-dismissable"><button aria-hidden="true" class="close" data-dismiss="alert" type="button">×</button> <ul> <% object.errors.full_messages.each do |msg| %> <%= content_tag :li, msg, :id => "error_#{msg}" if msg.is_a?(String) %> <% end %> </ul> </div> <% end %>
Adopted to reflect changes made in bootstrap3: