attachment_fu + S3 - re-save problem


I'm using attachment_fu with S3 storage, and am running into a problem:

When I first save the image to S3, it gets uploaded fine. When I try to change the image with:

      @image = Image.find_by_id(params[:id]) ||       @image.attributes = params[:image]       if          ....       end

The filename in the database gets updated, the filenames change to the new name in S3, but the images on S3 are of the original image, not the updated image.

yours, Steven.


I've been working on tracking this down, and I have another data point: This was with the MiniMagick engine. When I switched to Rmagick, the new image gets uploaded correctly to S3.

yours, sness.