Javascript Include Tag Best Practice in a Rails Application

后端 未结 4 2222
死守一世寂寞
死守一世寂寞 2020-12-12 11:50

Say I need to call a javascript file in the of an ERb template. My instinct is to do the usual:


<%= javascript_incl         


        
4条回答
  •  鱼传尺愫
    2020-12-12 12:43

    I feel there's nothing wrong including all yr defaults since they can then be cached on user's browser.

提交回复
热议问题