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
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