%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %>
<% full_messages = [] %>
<% record.errors.each do |attr,msg| %>
<% next if msg.nil? %>
<% attribute = [] %>
<% translated_attributes = [] %>
<% attribute = attr.split(".") %>
<% if attribute[attribute.length - 1] != "base" %>
<% attribute.each do |split_attr| %>
<% translated_attributes << I18n.translate("field_names.#{split_attr.to_s.downcase}") %>
<% end %>
<% msg = I18n.translate("activerecord.errors.full_messages.format",
:attribute => translated_attributes.join(" "),
:message => msg) %>
<% end %>
<%= "- #{h(msg)}
"%>
<% end %>