activeadmin-translate
activeadmin-translate copied to clipboard
Rails 4.2 + Globalize 5.0.1: translate_inputs only displays last field
using the example ActiveAdmin form:
form do |f|
f.translate_inputs do |t|
t.input :title
t.input :description
end
end
with Globalize 5.0.1, the translate_inputs helper will only display the :description input in the tabbed UI. (whatever line is last in the block is the only thing displayed.) hence, the hidden field for :locale is not returned either.
p.s. using the Rails 4.0-compatible branch at https://github.com/twintags/activeadmin-translate
Try the following:
form do |f| f.inputs do f.translate_inputs do |t| t.input :title t.input :description end end end
:+1:
Works for me! Don't forget to add
# ...
f.actions
end
at the end of your form for submit options.
You guys are gods!!!