Possible Duplicate:
Custom model attribute (column name) title in Ruby on Rails
I've been using this solution in Rails 2.x forever:
HUMANIZED_ATTRIBUTES = {
:email => "E-mail address"
}
def self.human_attribute_name(attr)
HUMANIZED_ATTRIBUTES[attr.to_sym] || super
end
but this causes bizarre errors when getting the errors
from an ActiveRecord instance. What is the correct way to get nice, human-readable names in Rails 3.x?