Skip to content

Commit

Permalink
Use image_tag helper with relative paths when loading static images i…
Browse files Browse the repository at this point in the history
…n /app/assets/images folder

This seems to be needed for Rails 4
  • Loading branch information
Matt-Yorkley committed Jun 17, 2020
1 parent 60f58a5 commit 0889da4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/shared/menu/_mobile_menu.html.haml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -14,7 +14,7 @@
%span
= t '.cart'
%span.count
%img{ src: "/assets/menu/icn-cart.svg" }
= image_tag "menu/icn-cart.svg"
%span
{{ Cart.total_item_count() }}
Expand Down

0 comments on commit 0889da4

Please sign in to comment.