Double Nested Association Setup With Formtastic and Cocoon in Rails
Setting Up a Has Many / Has One Nested Association With Formtastic and Cocoon in Rails 4.2
I recently had to setup a double nested association in Rails with the formtastic and cocoon gems. The model setup: a Person has_many Talks, and a Talk has one Location. I wanted to be able to add (or delete) a Talk with its corresponding Location. Here’s how I did it.
Post a comment