Share a gem https://github.com/falm/js-namespace-rails that can execute page-specific javascript and passing parameters from controller to assets js fiel
Share a gem https://github.com/falm/js-namespace-rails that can execute page-specific javascript and passing parameters from controller to assets js fiel