Posted almost 5 years ago. Visible to the public.
CarrierWave: When your uploader generates filenames dynamically, use model.save! instead of uploader.recreate_versions!
If your Carrierwave uploader dynamically generates the filename (e.g. by incorporating a user's name), you must call
model.save! after recreating versions.
uploader.recreate_versions! does not update the model with the stored filename.