Is there an easy gem or workflow to manage form fields for `has_many`?

This page summarizes the projects mentioned and recommended in the original post on /r/rails

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Cocoon

    Dynamic nested forms using jQuery made easy; works with formtastic, simple_form or default forms

  • On a previous project I used Cocoon which makes it simple to add a button that adds an additional set of fields for a nested object.

  • nested_form

    Discontinued Rails plugin to conveniently handle multiple models in a single form.

  • Anyway, there's also https://github.com/ryanb/nested_form it's no longer developed and uses jquery, but works on rails up to 6.1 (haven't tested it on 7)

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • vanilla-nested

    Rails dynamic nested forms using vanilla JS

  • abyme

    abyme is a modern take on handling dynamic nested forms in Rails 6+ using StimulusJS.

  • I wrote a gem for precisely this purpose :) Super easy setup, and cool generators. Have a look at the docs https://github.com/eki-177/abyme

  • nested_form_fields

    Dynamically add and remove nested has_many association fields in a Ruby on Rails form

  • 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:

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts