Sha256: aa9f5ae8b24857a0186e4e16501e8d1a5d96359e629ad081d9f03e0037f91d23

Contents?: true

Size: 578 Bytes

Versions: 4

Compression:

Stored size: 578 Bytes

Contents

<% if target.errors.any? %>
  <% gender ||= target.class.name.ends_with?("a") ? "female" : "male" %>
  <% model_name ||= target.class.name.underscore.humanize.downcase %>
  <div id="error_explanation">
    <h2>
      <%= t('activerecord.errors.template.header', :count => target.errors.count, :model => model_name, :article => (gender == "male" ? "El" : "La")) %>
    </h2>
    <%= t('activerecord.errors.template.body') %>
    <ul>
      <% target.errors.full_messages.each do |msg| %>
        <li>
        <%= msg %>
        </li>
      <% end %>
    </ul>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
rieles-0.0.4 app/views/application/_error_messages.html.erb
lbs-config-0.0.2 lib/generators/lbs/install/templates/_error_messages.html.erb
rieles-0.0.2 lib/generators/rieles/templates/_error_messages.html.erb
rieles-0.0.1 lib/generators/rieles/templates/_error_messages.html.erb