@ -20,10 +20,15 @@ module ActiveRecord
# Translate attribute names for validation errors display
def self.human_attribute_name(attr, options = {})
begin
options = options.merge({:raise => true})
super(attr, options)
rescue I18n::MissingTranslationData => e
l("field_#{attr.to_s.gsub(/_id$/, '')}")
end
module ActiveModel
class Errors