Comment on Ruby on Rails controller based JavaScriptComments−MrBra12yWithout having inspected the repo too much I ask myself.. (well, not just myself).. how is this different from requiring an external .js in your view except for a different, nice stylistic choice?−s12chungOP12yI try to make it clean having different JS for each individual HTML response. Plus, JSON parameters.The alternative is usually having script tags with written JS inside, which is ugly.
Comments
Without having inspected the repo too much I ask myself.. (well, not just myself).. how is this different from requiring an external .js in your view except for a different, nice stylistic choice?
I try to make it clean having different JS for each individual HTML response. Plus, JSON parameters.
The alternative is usually having script tags with written JS inside, which is ugly.