I am trying to follow Agile development using rails 5.0 book. There I have loaded images inside app/assets/images
directory manually just as told in the book.
Following is the line where it is showing error.
<%= image_tag(product.image_url, class: 'list_image') %>
As I mentioned I loaded images called for ex image.jpg
, and it throwing
ActionController exception caught
Sprockets::Rails::Helper::AssetNotFound in Products#index
The asset "image.jpg" is not present in the asset pipeline.
When I checked in db seeded there is a image with url image.jpg
but it is throwing error.