Closed amnesia7 closed 6 years ago
I assume it finds the file in assets itself because I've just checked it again, this time with just inline_svg('search.svg')
and it finds the assets file ok so closing issue.
I assume it finds the file in assets itself because I've just checked it again, this time with just inline_svg('search.svg') and it finds the assets file ok so closing issue.
@amnesia7 thanks for following up with your solution to the problem. By default inline_svg
uses Sprockets to locate assets on disk, which probably explains why you didn't need the additional asset path components.
Hi,
I've installed the gem and have tried putting an svg file in both
/app/assets/images/search.svg
and/public/images/icons/search.svg
and neither seems to work for me.It keeps returning:
with:
or
with:
Am I missing something here because if I point a new tab at either of those locations it finds the svg file?
I even tried copying the contents of this file (https://raw.githubusercontent.com/jamesmartin/inline_svg/master/spec/files/static_assets/assets0/some-document.svg) just in case it was the format of my svg file but no joy.
I'm using version 1.3.1, rails 5.1.4 and ruby 2.4.
Thanks