Put the image file you want to use in app / assets / images. In the html.haml file where you want to use the image
= image_tag src= "/assets/sample.png ", size: "50x50"
Put the image file used as the background in app / assets / images. And in the css file
background: image-url("sample.png "); background-size: cover;