Assumptions:
- Sketch was used to create the icons
- Each icon was saved in it's own artboard
Include the code below in application.html.slim
, just after the opening body
= svg_sprites(Rails.root.join('app/assets/images/sprites/*.svg'), 'sprites')
Then use the following to display the icon
= svg_icon('name-of-artboard-in-sketch')