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

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -