Reputation: 4104
When migrating paperclip to carrierwave, I followed the docs https://github.com/carrierwaveuploader/carrierwave#migrating-from-paperclip So I added paperclip compatibility
include CarrierWave::Compatibility::Paperclip
and I mounted the uploader
mount_uploader :image, ImageUploader
I also renamed the column name with following migration
rename_column :picture, :image_file_name, :image
(and I migrated this migration)
But on the website, the url points to /uploads/picture/image/...
while in fact the images are located at /images
So it seems to me that the paperclip compatibility isn't really doing it's job. Any idea what I might have done wrong?
Upvotes: 0
Views: 278
Reputation: 1
you can change the url using this function at your uploader.rb file:
def paperclip_path
'ModelName.underscore.pluralize/attachments/:id_partition/:style/:basename.:extension'
end
Upvotes: 0