Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 4.2 + Globalize 5.0.1: translate_inputs only displays last field #7

Open
davev opened this issue Mar 30, 2015 · 4 comments
Open

Comments

@davev
Copy link

davev commented Mar 30, 2015

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

@rbatllet
Copy link

Try the following:

form do |f|
  f.inputs do
    f.translate_inputs do |t|
      t.input :title
      t.input :description
    end
  end
end

@rensverschuren
Copy link

👍

@sploadie
Copy link

sploadie commented Jun 8, 2015

Works for me!
Don't forget to add

  # ...
  f.actions
end

at the end of your form for submit options.

@IvRRimum
Copy link

You guys are gods!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants