contentful-management.rb
contentful-management.rb copied to clipboard
Why is there nothing working in this gem?
I'm trying some very simple stuff like:
entry.published_at_with_locales['en-NZ'] = DateTime.parse(data['published_at'])
# or even
entry.published_at_with_locales = {'en-NZ' => DateTime.parse(data['published_at'])}
# no errors!
But it's not working, when I run
entry.published_at_with_locales
# gives nil!
How simple should this be?
@paul-mesnilgrente As mentioned in documentation you need to save entry entry.save after updating it to reflect the changes.
Trying the following might resolve your issue.
entry.published_at_with_locales['en-NZ'] = DateTime.parse(data['published_at'])
entry.save
Let me know if the fix works.
Cheers
I tried that but the result is the same :/