Wrong url with migrating paperclip to carrierwave

做~自己de王妃 提交于 2019-12-13 07:42:32

问题


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?

来源:https://stackoverflow.com/questions/32449069/wrong-url-with-migrating-paperclip-to-carrierwave

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!