svg - Includes in ERB for Rails -


i trying follow guide: http://css-tricks.com/svg-sprites-use-better-icon-fonts

chris states inject svg after opening body tag. in php simple i'm using rails have .html.erb file.

how include file using this? have tried asset helpers, evaluate, render. nothing seems work?

this belongs ruby racer.

inline_svg_helper.rb

def inline_svg(path)     file.open("app/assets/images/#{path}", "rb") |file|     raw file.read   end end 

Comments

Popular posts from this blog

php - How to serve a file for download on WordPress -

how to share virtual sharepoint server and get it in host windows and visual studio? -