unmantained-activeadmin-plugins / activeadmin-globalize

MIT License
51 stars 189 forks source link

Unable to use translated_inputs with form partial #18

Closed megatux closed 11 years ago

megatux commented 11 years ago

Hi, don't know if I'm using it correctly. Here is my code:

ActiveAdmin.register Carousel do
  form partial: 'form'
= semantic_form_for [:admin, @carousel] do |f|

  - f.translated_inputs "Translated fields" do |t|
    t.input :name
  = f.actions
undefined method `translated_inputs' for #<Formtastic::FormBuilder:0x007fe1eb3e3c10>
marcusg commented 11 years ago

You need to use the ActiveAdmin formbuilder:

= semantic_form_for [:admin, @carousel], :builder => ActiveAdmin::FormBuilder do |f|
megatux commented 11 years ago

Thanks @marcusg !