This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README | ||
| |
Rakefile | ||
| |
init.rb | ||
| |
install.rb | ||
| |
lib/ | ||
| |
tasks/ | ||
| |
test/ | ||
| |
uninstall.rb |
README
HumanizeAttributes
==================
Add humanity to Rails ActiveRecord column names.
Example
=======
humanize_attributes :login => "User Name",
:password => "Secret Key"
Look for a more elegant way?
=======
Rails 2.2 has brought us powerful I18N, now we can localize ActiveRecord model names very easily, just drop the
following in the config/locales/en.yml:
en:
activerecord:
models:
user: "Member"
attributes:
user:
login: "User Name"
password: "Secret Key"
See [here](http://blog.ashchan.com/archive/2008/11/24/rails-i18n-activerecord-model-human-name-made-easy/) for more
details.
Credits
=======
The original idea came from [Changing human attribute labels in Rails validation
messages](http://fatvegan.com/2008/05/13/changing-human-attribute-labels-in-rails-validation-messages/).
Copyright (c) 2008 James Chan, released under the MIT license








