From ff6ba8819f4fbc3464c7f7168ebb554cd6638e24 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 16 Jun 2020 13:56:53 +0200 Subject: [PATCH] Use image_tag helper with relative paths when loading static images in /app/assets/images folder This seems to be needed for Rails 4 --- app/views/shared/menu/_mobile_menu.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/shared/menu/_mobile_menu.html.haml b/app/views/shared/menu/_mobile_menu.html.haml index 1c96dd1d64..716db01f73 100644 --- a/app/views/shared/menu/_mobile_menu.html.haml +++ b/app/views/shared/menu/_mobile_menu.html.haml @@ -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() }}