my index.html.erb code -
index.html.erb
Listing products <% @products.each do |product| %> 4条回答 感动是毒 (楼主) 2020-12-30 04:06 If you are using asset pipeline http://guides.rubyonrails.org/asset_pipeline.html, The image path should be /assets/product1.jpg instead of /images/product1.jpg If you are not using asset pipeline, move the images folder to public/images 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
If you are using asset pipeline http://guides.rubyonrails.org/asset_pipeline.html,
The image path should be /assets/product1.jpg instead of /images/product1.jpg
/assets/product1.jpg
/images/product1.jpg
If you are not using asset pipeline, move the images folder to public/images
public/images