Open phlegx opened 13 years ago
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): ...
name
countries
Thx
I wrote a reply in globalize3 issue you've created: https://github.com/svenfuchs/globalize3/issues#issue/34
with rails2 of course change .where to :conditions => {'table.field' => name}
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
name
exists for tablecountries
): ...Thx