我将我的回形针图像上传到本地机器/服务器上,但是当我尝试访问它时,我有404
代码,当我在本地尝试相同的东西时它工作正常。在我的production.rb
,我添加了config.serve_static_assets = true
。我的链接看起来像/system/file_docs/documents/000/000/188/original/image.jpeg?1513769406
绕组,
我有一个类似的问题,我的图像没有显示。这是由于配置,我通过样式显示图像:
model.attachment.url :style
如果是这种情况,请尝试通过img_path显示图像
<% image_tag model.attachment.url %>
检查您的模型,看看您是如何尝试显示图像的