Return to Snippet

Revision: 4435
at December 11, 2007 14:47 by brettarogers


Initial Code
class User < ActiveRecord::Base
  HUMANIZED_ATTRIBUTES = {
    :email => "E-mail address"
  }

  def self.human_attribute_name(attr)
    HUMANIZED_ATTRIBUTES[attr.to_sym] || super
  end

end

Initial URL


Initial Description


Initial Title
Humanized Attributes

Initial Tags
textmate, rails

Initial Language
Rails