Rails: Why images are not showing in my rails basic app

后端 未结 4 1563
遥遥无期
遥遥无期 2020-12-30 03:44

my index.html.erb code -

Listing products

<% @products.each do |product| %>
4条回答
  •  独厮守ぢ
    2020-12-30 04:01

    If you are received a file with a .jpeg extension try and renaming the file with just the ".jpg".

    From

    <%= image_tag "image.jpeg" %>
    

    To:

    <%= image_tag "image.jpg" %>
    

提交回复
热议问题