Not sure what\'s going on here, but I think my nested form partials are causing a problem for CarrierWave.
When I update a field with an uploaded file, nothing happe
Some possible solutions:
And also you'll want to note of the known issue with Carrierwave and nested forms as detailed on the Carrierwave Wiki.
The workaround is to add the method below:
class Image < ActiveRecord::Base
mount_uploader :image, ImageUploader
def image=(val)
if !val.is_a?(String) && valid?
image_will_change!
super
end
end
end
class Person < ActiveRecord::Base
has_many :images
accepts_nested_attributes_for :images
end