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

f.translated_inputs can't be split up across input-groups #40

Open
besi opened this issue Jul 7, 2014 · 1 comment
Open

f.translated_inputs can't be split up across input-groups #40

besi opened this issue Jul 7, 2014 · 1 comment

Comments

@besi
Copy link

besi commented Jul 7, 2014

Assuming I have the following setup:

form do |f|
    f.inputs do
      f.translated_inputs do |t|
        t.input :title
      end   

      f.translated_inputs do |t|
        t.input :description
      end
      f.input :slug
    end

    f.actions
  end

Now when I create a new entry. All translated values from the second translated_inputs block will be discarded.

As soon as the record is saved once, it works. But not for the initial save.

I have to group all entries in one translated_inputs block like so:

form do |f|
  f.inputs do |x|
    f.translated_inputs do |t|
      t.input :title
      t.input :description
    end
    f.input :slug
  end

  f.actions
end

I have quite a big model and the different translated values are grouped semantically. Due to this behaviour I now have to add a group just for the translated values.

@besi
Copy link
Author

besi commented Jul 16, 2014

Internal reference 51

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

1 participant