Rails Carrierwave upload multiple files undefined method `[]' for nil:NilClass
问题 someone please can clarify why this undefined method `[]' for nil:NilClass is happening on upload files with rails, carrierwave and react? the rest of the code are very standard, so in the logs on upload image always the image attribute from post_attachments shows blank. i suspected that the problem is with the rails loop over the post_attachments on post create, what do you guys think? and i changed to params[:post_attachments].each do |image| img = PostAttachment.new img.image = image @post