How to namespace our JS for use with the Rails asset pipeline

后端 未结 2 1102
执念已碎
执念已碎 2021-02-14 04:53

I understand the reasoning behind the rails 3.1 asset pipeline: we compile all the JS in a neat, cacheable file to improve performance. Great we want that.

However, load

2条回答
  •  忘了有多久
    2021-02-14 05:41

    JsSpace.on('users', {
      index: function(){
        console.log('index action of users controller');
      }
    });
    

    that pattern implemented by render controller and action into body attribute then fetch them and execute the match function. js-namespace-rails

提交回复
热议问题