<% if target.errors.any? %> <% gender ||= target.class.name.ends_with?("a") ? "female" : "male" %> <% model_name ||= target.class.name.underscore.humanize.downcase %>

<%= t('activerecord.errors.template.header', :count => target.errors.count, :model => model_name, :article => (gender == "male" ? "El" : "La")) %>

<%= t('activerecord.errors.template.body') %>
<% end %>