I am using Ruby on Rails 4 and the Globalize gem.
When I submit multiple translations from a form in my application, Globalize creates a new record for each locale in the translation database table, even if the translation for the given locale already exists in that table.
I would like to have one translation per locale so when the form is submitted then a new translation record is created only if it doesn't exist yet, otherwise it should be just updated with the submitting data.
How can I do that?