标签: html ruby-on-rails image http-status-code-404 asset-pipeline
在我的rails项目中:
如果我使用image_tag
<%=image_tag 'sqlite.png'%>
图像显示,但是,如果我使用原始的html img标签,如下:
<img src="/assets/images/sqlite.png">
我也试过
<img src="/images/sqlite.png">
我仍然得到404 - 未找到错误。如何在rails中使用原始html图像标记?
对于我的具体用例,我需要使用html img标签。救命啊!