CarrierWave Upload Multiple Images
by Nesha4mMarch 7th, 2020 Too Long; Didn't Read
CarrierWave is a Ruby gem that provides a simple way to upload files from Ruby applications. This tutorial will show you the necessary steps to enable upload multiple images/files using CarrierWave in Rails 4+ from scratch. A similar procedure can be applied for nested forms. You can generate your migrations using Scaffolding in the Ruby Gemfile. This will generate a full set of model, views and controller, and a test suite for each of the above. The next step is to add the following to your PostAttachment model.