Use image_tag helper with relative paths when loading static images in /app/assets/images folder

This seems to be needed for Rails 4
This commit is contained in:
Matt-Yorkley
2020-06-16 13:56:53 +02:00
parent 7c7ab322bb
commit ff6ba8819f

View File

@@ -1,7 +1,7 @@
%nav.tab-bar.show-for-medium-down
%section.left
%a.left-off-canvas-toggle.menu-icon
%img{src: "/assets/menu/btn-menu-mobile.png"}
= image_tag "menu/btn-menu-mobile.png"
%section.left
.ofn-logo
@@ -14,7 +14,7 @@
%span
= t '.cart'
%span.count
%img{ src: image_path("menu/icn-cart.svg") }
= image_tag "menu/icn-cart.svg"
%span
{{ Cart.total_item_count() }}