[Rails3] Localization for non activerecord models

I have a Contact model that is a non activerecord model. I can use the
validation thanks to Rails3, but I do not in which section of
en.yml/de.yml I should localize the attributes of my Contact model.

The scope is not under activerecord, but activemodel, which you can
change:
https://github.com/rails/rails/blob/master/activemodel/lib/active_model/translation.rb#L26-29

Hope this helps

Cheers, iain

Iain H. wrote in post #980254:

The scope is not under activerecord, but activemodel, which you can
change:

https://github.com/rails/rails/blob/master/activemodel/lib/active_model/translation.rb#L26-29

Hope this helps

Cheers, iain

Thank you!

2011/2/9 Fernando P. [email protected]:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs