nested_form_fields
Dynamically add and remove nested has_many association fields in a Ruby on Rails form (by ncri)
vanilla-nested
Rails dynamic nested forms using vanilla JS (by arielj)
nested_form_fields | vanilla-nested | |
---|---|---|
1 | 3 | |
308 | 168 | |
- | - | |
0.0 | 3.9 | |
about 1 year ago | 4 months ago | |
Ruby | Ruby | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nested_form_fields
Posts with mentions or reviews of nested_form_fields.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-15.
-
Is there an easy gem or workflow to manage form fields for `has_many`?
We are using simple forms in a turbo application. We are making use of stimuli-rails-nested-form controller (https://www.stimulus-components.com/docs/stimulus-rails-nested-form/) and a little helper taken from https://github.com/ncri/nested_form_fields & adapted to our use case:
vanilla-nested
Posts with mentions or reviews of vanilla-nested.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-15.
- Is there an easy gem or workflow to manage form fields for `has_many`?
-
JavaScript error in Rails 7
I know it sounds like advertisement, but you can use my gem for that https://github.com/arielj/vanilla-nested, it does not require jquery and works with importmaps or js bundlers.
-
Tutorials for creating dynamic forms ?
I have a gem for that https://github.com/arielj/vanilla-nested and I was invited to the SupeRails screencast where we talked a bit about how it works https://www.youtube.com/watch?v=iLKnbK__2_M
What are some alternatives?
When comparing nested_form_fields and vanilla-nested you can also consider the following projects:
Cocoon - Dynamic nested forms using jQuery made easy; works with formtastic, simple_form or default forms
nested_form - Rails plugin to conveniently handle multiple models in a single form.
abyme - abyme is a modern take on handling dynamic nested forms in Rails 6+ using StimulusJS.