You need to remove your image tag.
Your css is currently expanding to:
background-image: url('<img src=""</img>')
You must change it to:
background-image: url("public/images/#{facility.image}.jpg")
I will have a check to see if there is an assistant for this.
EDIT: image_path helper , so you need:
background-image: url(#{image_path "logos/#{facility.image}.jpg"})
Gazler
source share