-
Type: Task
-
Resolution: Won't Fix
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
Hi. I had a ploblem with updating fields with translations.
I do this:
Model.where(id: '_some_id_').update_all(name_translations: {en: 'some_title_in_en', uk: 'some_title_in_uk'})
and this doesn't work.
Then I tried this:
Model.where(id: '_some_id_').update_all(name: {en: 'some_title_in_en', uk: 'some_title_in_uk'})
and this save to 'name' the hash as string, like "{:en=>\"some_title_in_en\", :uk=>\"some_title_in_uk\"}", doesn't work anyway
What's wrong? Thanks!