Sunday, May 12, 2013

Readable model name with translation support

Use following to have the translated attribute with fallback support,
This will look in to the translation in the following order,
First it will look for the "en.activerecord.models.person.first_name" and then for "en.attributes.first_name" and finally falls back to humanize.

1 comment:

Anonymous said...

I like this post Thanks for sharing
http://www.sociallei.com/
http://www.andro8.com/