How to add multiple nested attributes to a multi file upload
问题 I am trying to set up a multi image upload with carrierwave. I am following the question Rails 4 multiple image or file upload using carrierwave and in particular the answer by @prograils https://stackoverflow.com/a/38769726/4779531. I have an album.rb model and a diapo.rb model. class Album < ApplicationRecord has_many :diapos accepts_nested_attributes_for :diapos, allow_destroy: true end + class Diapo < ApplicationRecord belongs_to :album has_and_belongs_to_many :authors, :join_table =>