Use a nested dynamic form with a has_many :through association in Rails.

This page summarizes the projects mentioned and recommended in the original post on dev.to

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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • pantry

  • Before we dive in, you can find the completed code here. I will break out each section into branches and link them as we get to them.

  • Cocoon

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

  • To add and remove recipe ingredients, we're going to use my favorite gem for handling this. The gem is called cocoon. Cocoon defines two helper methods, link_to_add_association and link_to_remove_association, these are aptly named because what they do is provide links that, when clicked, will either build a new association and create the appropriate fields or will create a link with the ability to mark an association for deletion.

  • 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

  • Rails nested form (new gem with Stimulus)

    2 projects | dev.to | 18 Jun 2023
  • Is there an easy gem or workflow to manage form fields for `has_many`?

    5 projects | /r/rails | 15 Mar 2023
  • what would be the preferred way of creating a form that isn't bound to a model?

    1 project | /r/rails | 15 Feb 2023
  • I'm looking for a solution or strategies for viewing and managing related records in a single view

    2 projects | /r/rails | 11 Dec 2022
  • What's Rails's answer to Django's formsets?

    1 project | /r/rubyonrails | 7 Aug 2022