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

Posted by 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.
Posted by 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
Posted by 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!
Posted by Beate Paland (Guest)
on 2011-02-13 17:33
(Received via mailing list)
2011/2/9 Fernando Perez <lists@ruby-forum.com>:
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.