html5 - Adding SVG as <object> in Ruby on Rails -


i trying friend game project. using svg graphics in rails. problem when attempt add svg graphics using rails image helper fails render, i'm told chrome problem , need use <object> tag instead of <img> tag. also, seems it's not possible manipulate svg javascript when svg file sourced <img> tag, whole reason me wanting use svg.

however, i'm not sure how use rails asset pipeline correctly when not utilising helper functions (there doesn't seem 1 objects of sort). can foresee manual referencing causing sorts of problems once hit production server... inform me correct way this?


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -