ruby-on-rails-3modelsrails-adminglobalize3

Rails force all translations


I am using globalize3 with rails_admin thanks to this gist. What bugs me, is that the user can add as many translations as he wants.

Moreover, he isn't forced to translate the content in every single locale (as in I18n.available_locales). I'd like that. How can you tackle such a situation?

Models (shortened):

class Project < ActiveRecord::Base
    has_many :project_translations, :dependent => :destroy, :inverse_of => :project
    accepts_nested_attributes_for :project_translations, :allow_destroy => true

class ProjectTranslation < ActiveRecord::Base
    belongs_to :project

Solution

  • I ended up using Active Admin plus activeadmin-globalize3 instead. Much easier.