Easily change the path for your Paperclip attachments

Today after releasing an app to production environment I saw a couple of paperclip warnings like this in my production.log file: [paperclip] Duplicate URL for round_image with /system/:attachment/:id/:style/:filename. This will clash with attachment defined in PageElements::FranchisingCarouselEntry class This happens because I defined an attachment with the same name in two different models, and the default strategy Paperclip uses to choose attachment locations could lead to filename clashing. Here is a more detailed example:...

December 10, 2012 · 2 min · metalelf0