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

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -