0
我有一個網站在我的分期環境heroku。任何時候用戶沒有與他們關聯的圖像,都會顯示默認圖像。該圖像存儲在我的資產/圖像目錄中。我不認爲這是沒有S3存儲桶的情況,因爲圖像目錄中的其他照片顯示正常。默認照片沒有顯示分段環境
我的模型建立
class Project < ActiveRecord::Base
has_attached_file :image, styles: { medium: "300x300>", thumb: "100x100>" },
:default_url =>
ActionController::Base.helpers.asset_path("noimage.jpg")
是我的問題與我如何要求的圖像文件或東西與回形針。