Skip to content

duplicate inputs when used inside form #12

@marcusg

Description

@marcusg

I have a custom form using the activeadmin-globalize3 translated_inputs method. Everything looks good except the duplicate field for title. Any idea why this is produced?

inputs

The admin register messages.rb

ActiveAdmin.register Message do
  form :partial => 'form'
end

The code in _form.html.haml

= semantic_form_for [:admin, @message], :builder => ActiveAdmin::FormBuilder do |f|
  - f.translated_inputs do |t|
    = t.input :title
    = t.input :content
  = f.actions do
    = f.action :submit
    %li.cancel
      = link_to I18n.t('active_admin.cancel'), {:action => "index"}

I also tried to use the original Formtastic formbuilder instead of ActiveAdmin::FormBuilder, but with that I had no access to the translated_inputs method. Any help much appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions