I have a problem with including images in my views using Ruby on Rails Webpacker. When i try to insert image in my view using html img tag and asset_pack_path i got an error. My
My images are located in /app/assets/images.
/app/assets/images
Firstly add app/assets to resolved_paths: ['app/assets'] in webpacker.yml
app/assets
resolved_paths: ['app/assets']
webpacker.yml
And then you can use the image in your JS like so:
in CSS: