Makes it easy to translate your resource fields.
The original gem is not maintened anymore, so I forked it to be compatible for Rails 4.2 and globalize 5 .
gem "activeadmin-globalize", github: 'alexhifer/activeadmin-globalize'
active_admin_translates :title, :content do
validates_presence_of :title
end
# if you are using Rails 4 or Strong Parameters:
permit_params translations_attributes: [
:id, :locale, :title, :content
]
index do
# ...
translation_status
actions
end
form do |f|
# ...
f.translated_inputs "Translated fields", switch_locale: false do |t|
t.input :title
t.input :content
end
# ...
end
If switch_locale
is set, each tab will be rendered switching locale.