Sha256: a34b6f76638b38258389dab058e139f48d61cae39b667bbece4af0f585192f55

Contents?: true

Size: 353 Bytes

Versions: 38

Compression:

Stored size: 353 Bytes

Contents

<% if model.errors.any? %>
  <%= polaris_banner status: 'critical', title: "#{ pluralize(model.errors.count, "error") } prohibited this #{ model.class.name.humanize } from being saved" do %>
    <ul>
      <% model.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
    </ul>
  <% end %>
  <p>&nbsp;</p>
<% end %>

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
polaris_view_helpers-1.2.7 app/views/polaris/_model_errors.html.erb
polaris_view_helpers-1.2.6 app/views/polaris/_model_errors.html.erb
polaris_view_helpers-1.2.5 app/views/polaris/_model_errors.html.erb
polaris_view_helpers-1.2.4 app/views/polaris/_model_errors.html.erb
polaris_view_helpers-1.2.3 app/views/polaris/_model_errors.html.erb
polaris_view_helpers-1.2.2 app/views/polaris/_model_errors.html.erb
polaris_view_helpers-1.2.1 app/views/polaris/_model_errors.html.erb
polaris_view_helpers-1.2.0 app/views/polaris/_model_errors.html.erb
polaris_view_helpers-1.1.6 app/views/polaris/_model_errors.html.erb
polaris_view_helpers-1.1.5 app/views/polaris/_model_errors.html.erb
polaris_view_helpers-1.0.5 app/views/polaris/_model_errors.html.erb
polaris_view_helpers-1.0.4 app/views/polaris/_model_errors.html.erb
polaris_view_helpers-1.0.3 app/views/polaris/_model_errors.html.erb
polaris_view_helpers-1.0.2 app/views/polaris/_model_errors.html.erb
polaris_view_helpers-1.0.1 app/views/polaris/_model_errors.html.erb
polaris_view_helpers-1.0.0 app/views/polaris/_model_errors.html.erb
polaris_view_helpers-0.0.22 app/views/polaris/_model_errors.html.erb
polaris_view_helpers-0.0.21 app/views/polaris/_model_errors.html.erb
polaris_view_helpers-0.0.20 app/views/polaris/_model_errors.html.erb
polaris_view_helpers-0.0.19 app/views/polaris/_model_errors.html.erb