-
Cocoon
Dynamic nested forms using jQuery made easy; works with formtastic, simple_form or default forms
-
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.
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.
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.
Related posts
-
Rails nested form (new gem with Stimulus)
-
Is there an easy gem or workflow to manage form fields for `has_many`?
-
what would be the preferred way of creating a form that isn't bound to a model?
-
I'm looking for a solution or strategies for viewing and managing related records in a single view
-
What's Rails's answer to Django's formsets?