The latest stable version of Paperclip hasn’t yet been updated for the Asset Pipeline. This only affects the default image which is served if no file has been uploaded for the attached asset. If you’d like your default “missing” images served from image assets in the pipeline, configure the default_url like this:
1 2 3 4 5
Now just put your default images –in this case missing_original.png, missing_small.png, and missing_thumbnail.png– into the directory app/assets/images and they’ll be used as the default images for your model.
Of course, you can also place the files somewhere under the public directory to allow your webserver to serve the file directly. This makes sense if you’re using local storage for the files. You don’t want to put the uploaded files or their derivatives in the asset pipeline since they are static files and won’t need any of the preprocessing that the pipeline offers. But if you’re using Amazon S3 or another storage system for uploaded files and want to keep your limited image assets together in your app codebase, now you know how.