Sha256: a98adbdfa7e14d36e7d84ca3c86c5d2ab3d9545f18cafd58b838e30b38796ad9

Contents?: true

Size: 303 Bytes

Versions: 15

Compression:

Stored size: 303 Bytes

Contents

<% if resource && resource.errors.any? %>
<div class="alert alert-error">
  <h2><%= t('general.form.errors_count', count: pluralize(resource.errors.count, t('general.error'))) %></h2>
  <ul>
  <% resource.errors.full_messages.each do |msg| %>
    <li><%= msg %></li>
  <% end %>
  </ul>
</div>
<% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
voluntary-0.4.0 app/views/shared/form/_error_messages.html.erb
voluntary-0.3.0 app/views/shared/form/_error_messages.html.erb
voluntary-0.2.4 app/views/shared/form/_error_messages.html.erb
voluntary-0.2.3 app/views/shared/form/_error_messages.html.erb
voluntary-0.2.2 app/views/shared/form/_error_messages.html.erb
voluntary-0.2.1 app/views/shared/form/_error_messages.html.erb
voluntary-0.2.0 app/views/shared/form/_error_messages.html.erb
voluntary-0.1.0 app/views/shared/form/_error_messages.html.erb
voluntary-0.1.0.rc4 app/views/shared/form/_error_messages.html.erb
voluntary-0.1.0.rc3 app/views/shared/form/_error_messages.html.erb
voluntary-0.1.0.rc2 app/views/shared/form/_error_messages.html.erb
voluntary-0.1.0.rc1 app/views/shared/form/_error_messages.html.erb
voluntary-0.0.3 app/views/shared/form/_error_messages.html.erb
voluntary-0.0.2 app/views/shared/form/_error_messages.html.erb
voluntary-0.0.1 app/views/shared/form/_error_messages.html.erb