RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: haggen
Anyone trying translating ? I tried this, as mentioned in API docs:
http://api.rubyonrails.org/classes/ActiveModel/Translation.html
class TranslatedPerson extend ActiveModel::Translation end
Actually what I am trying to do is translate the error messages. The message part like "can not be empty", etc. worked, but the attribute names still in english.
Anyone trying translating ? I tried this, as mentioned in API docs:
http://api.rubyonrails.org/classes/ActiveModel/Translation.html
Actually what I am trying to do is translate the error messages. The message part like "can not be empty", etc. worked, but the attribute names still in english.