-
Notifications
You must be signed in to change notification settings - Fork 18
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
Forms nested multiple levels #76
Comments
Hi, I think I have seen your issue on another gem as well, I am having the same problem in general. Have you managed to fix or find a gem that does this nicely? |
hey! sorry I missed the original message I'll check today, I have some idea on how to fix it, will keep you posted |
@karianne @codeborgar can you try this branch? #77 if you are using just the ruby gem you can change the gemfile to do:
if you are also using the yarn package, you can change with:
Note that nesting is difficult to handle automatically so there are some notes of a naming convention that's needed in this case explained on the PR description (hopefully it's clear enough, but feel free to ask here, that will help me improve the README. |
I'm trying to use this gem to add a two-level structure: Theme --(has many)--> ThemeSection --(has_many)--> ThemeSectionItem. However, it seems that I'm running into a bug where
"
is not encoded correctly, since I get this html when trying to add a ThemeSection:(note the broken
data-method-for-insert
at the bottom, which should have been a part of the div added by vanilla-nested)Is this gem even supposed to be used with two levels?
For reference, here's my form ERB:
_form.html.erb
:theme_section_fields.html.erb
:theme_section_item_fields.html.erb
:The text was updated successfully, but these errors were encountered: