Forum: Rails I18n [Rails3] Localization for non activerecord models

059ed46172a087063ce26250e44c8627?d=identicon&s=25 Fernando Perez (fernando)
on 2011-02-07 20:38
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.
42ec9fd08c179b547dcb60d977e29941?d=identicon&s=25 Iain Hecker (Guest)
on 2011-02-08 11:45
(Received via mailing list)
The scope is not under activerecord, but activemodel, which you can
change:
https://github.com/rails/rails/blob/master/activem...

Hope this helps

Cheers, iain
059ed46172a087063ce26250e44c8627?d=identicon&s=25 Fernando Perez (fernando)
on 2011-02-09 15:05
Iain Hecker wrote in post #980254:
> The scope is not under activerecord, but activemodel, which you can
> change:
>
https://github.com/rails/rails/blob/master/activem...
>
> Hope this helps
>
> Cheers, iain

Thank you!
Ad91bce9c9a8c68b6942607e4721f74e?d=identicon&s=25 Beate Paland (Guest)
on 2011-02-13 17:33
(Received via mailing list)
2011/2/9 Fernando Perez <lists@ruby-forum.com>:
This topic is locked and can not be replied to.