Ruby on rails 如何在globalize中删除区域设置?
我正在使用添加模型翻译。Ruby on rails 如何在globalize中删除区域设置?,ruby-on-rails,activerecord,globalize,Ruby On Rails,Activerecord,Globalize,我正在使用添加模型翻译。 我有ru,enlocale,想从对象中删除enlocale,如何删除 试图以这种方式删除,但它删除了所有具有ru、en语言环境的对象 Country.with_translations(:en).find(1).destroy 试试这个: country.translations.find_by(locale: :en).destroy
我有
ru,en
locale,想从对象中删除en
locale,如何删除
试图以这种方式删除,但它删除了所有具有ru、en语言环境的对象
Country.with_translations(:en).find(1).destroy
试试这个:
country.translations.find_by(locale: :en).destroy