This post shows how to use carrierwave gem to upload multiple files in Rails 4 Let suppose the following scenario. We have multiple projects and each project can have multiple screenshots. In project.rb class Project < ActiveRecord::Base has_many :screenshots accepts_nested_attributes_for :screenshots, :allow_destroy => true end In screenshot.rb class Screenshot < ActiveRecord::Base belongs_to :project mount_uploader :image, ScreenshotUploader […]
- Home
- About Us
- Why Choose Us?
- Products
- Services
- Portfolio
- Clients
- Expertise
- Contact Us