I have a svg image on /app/asssets/images/symbols.svg with this as contents.
Create a helper: (content is different in each case, custom your own one)
def icon(icon, css_class: "")
content_tag(:svg, class: "icon icon_#{icon} #{css_class}") do
content_tag(:use, nil, 'xlink:href' => "#icon_#{icon}")
end
end
Use it like this:
<%= icon 'arrow-menu' , css_class: 'arrow-breadcrumb' %>