I have a ROR application that works with ActiveAdmin and uses CarrierWave to load images. I have a model: A product that allows you to use multiple ProductImages. Everything seems to be going well when it simply adds a new product and selects a few images to upload. But as soon as I want to edit this product, the image does not seem to be uploaded, plus I get the following error:
undefined method `image_changed?'
My guess is that the bootstrap does not do much and therefore ends up empty when editing.
Here is a snippet of the admin form:
ActiveAdmin.register Product do form(:html => {:multipart => true}) do |f| f.inputs "Details" do f.input :name f.input :descr, :label => "Description" f.input :brand, :as => :select, :collection => Brand.all, :member_label => :name, :label => "Brand"
change
I know one more thing, images are loaded when creating a message, its editing comes from it.
source share