Hi!
How can I query a model where an attribute is translated with globalize2. I have for example this line, and the attribute name is in the country_translations table:
I18n.locale = :de
@countries = Country.scoped
@countries.where(:name => '[Some country name]')
This gives me an error: ActiveRecord::StatementInvalid (No attribute named name exists for table countries): ...
Thx
Hi!
How can I query a model where an attribute is translated with globalize2. I have for example this line, and the attribute name is in the country_translations table:
This gives me an error: ActiveRecord::StatementInvalid (No attribute named
nameexists for tablecountries): ...Thx