Rails with backbone-rails: asset helpers (image_path) in EJS files

后端 未结 5 519
无人共我
无人共我 2020-12-13 11:24

I have a Rails 3.1 app that uses the codebrew/backbone-rails. In a .jst.ejs template, I would like to include an image, like so:



        
5条回答
  •  粉色の甜心
    2020-12-13 11:52

    Ryan Fitzgerald was kind enough to post a gist of his JavaScript asset helpers (which get precompiled with ERB): https://gist.github.com/1406349

提交回复
热议问题