<% if resource && resource.errors.any? %>
    <div class="row">
        <div class="alert alert-danger">
            <p>
                <%= pluralize(resource.errors.count, "error") %>
                prevented the form from being saved:
            </p>
            <ul>
            <% resource.errors.full_messages.each do |msg| %>
                <li><%= msg %></li>
            <% end %>
            </ul>
        </div>
    </div>
<% end %>
<% if resource && resource.errors.any? %>
    <div class="alert alert-danger">
        <p>
            <%= pluralize(resource.errors.count, "error") %>
            prevented the form from being saved:
        </p>
        <ul>
        <% resource.errors.full_messages.each do |msg| %>
            <li><%= msg %></li>
        <% end %>
        </ul>
    </div>
<% end %>
Improve spacing around error alerts in action-sheets
Improve spacing around error alerts in action-sheets
