Activity
Try adding `validates :authors, presence: true` to the Book model.
Hey your `create` action shouldn't need to loop over the `book_params` to create params.
I quickly created a sample app that shows how I use `cocoon` with many-to-many relationships.
It is at https://github.com/dylanpinn/rails-bookstore. Let me know how you go.
I quickly created a sample app that shows how I use `cocoon` with many-to-many relationships.
It is at https://github.com/dylanpinn/rails-bookstore. Let me know how you go.