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

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

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