Rails Passing parameters into javascript in assets

javascript
rails

#1

Share a gem js-namespace-rails
page-specific javascript and passing parameters from controller to
assets js file


#2

Interesting project. How does it work?


#3

It using view_context render javascript template from controller and bring params After that template will insert within javascript_include_tag once. finally javascript will execute when event ‘DOMContentLoaded’ triggered.