How to save dynamic number of images using carrierwave
问题 I'm using gem Carrierwave with fog to upload my images to AWS S3 . Right now, I have static memories like this. class CreateImagePosts < ActiveRecord::Migration def change create_table :image_posts do |t| t.string :img1 t.string :img2 t.string :img3 t.string :img4 t.string :img5 t.string :img6 t.string :img7 t.string :img8 t.timestamps null: false end end end But I want to make it possible to upload dynamic numbers of images not like present setting(limited in number of images). My model