jnicklas/carrierwave — Issue #637: recreate_versions! will not rename an uploaded file path
Author: mipearson
Created: 2012-02-27 23:57:32+00:00
State: open

I suspect this is a documentation issue more than an actual 'bug' as when I thought about the implementation I realised what was probably happening.

Anyway:

I have a number of .gifs uploaded. I added a:

``` ruby
process :format => 'png'

def filename
super.chomp(File.extname(super)) + '.png'
end
```

to my uploader. I then call recreate_versions! on my uploaded images. Versions get recreated as .png, but the actual image path in my model isn't updated.

Going to try a couple of workarounds (delete image, manually store from tempfile) and will let you know if that helps.

Rails 3.2, REE 1.8.7, Carrierwave 0.5.8