humanized attributes
1 class User < ActiveRecord::Base 2 3 HUMANIZED_ATTRIBUTES = { 4 :email => "E-mail address" 5 } 6 7 def self.human_attribute_name(attr) 8 HUMANIZED_ATTRIBUTES[attr.to_sym] || super 9 end 10 11 end