Skip to content

I can't use "translated_inputs" inside "has_many" #46

@sbrocos

Description

@sbrocos

I've next code:

form do |f|
    f.semantic_errors *f.object.errors.keys
    f.inputs 'General' do
      f.input :active, :as => :boolean
      f.translated_inputs "Translated fields", switch_locale: false do |t|
        t.input :title
        t.input :description, :as => :text
      end
      f.has_many :images, display: :panel do |image|
        image.input :asset, :as => :file
        image.translated_inputs "globalize", switch_locale: false, display: :panel do |translate_image|
          translate_image.input :title
        end
      end
    end
    f.actions
  end

But the in the (html) result isn't exist "translate_image.input :title", is empty.

PD: sorry by my english.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions