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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -