Sha256: 1f9d03a94f9f0f4dbb446c223e8626f58e8bac267be536ad45d1fb84a6d7010b

Contents?: true

Size: 576 Bytes

Versions: 4

Compression:

Stored size: 576 Bytes

Contents

<% if target.errors.any? %>
  <% gender ||= (target.class.name =~ /[ad]$/ ) ? "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 & 1 rubygems

Version Path
rieles-0.0.8 app/views/application/_error_messages.html.erb
rieles-0.0.7 app/views/application/_error_messages.html.erb
rieles-0.0.6 app/views/application/_error_messages.html.erb
rieles-0.0.5 app/views/application/_error_messages.html.erb