I am using Rails 3.2.13 with the asset pipeline. In development mode, my JavaScript files output is like the following below when using the manifest file:
<script type="text/javascript" src="/assets/guitars.js?body=1">
<script type="text/javascript" src="/assets/someTemplate.js?body=1">
<script type="text/javascript" src="/assets/application.js?body=1">
I however, wish to include the name of the filename into a id attribute to each of the JavaScript files like this instead:
<script id="guitars" type="text/javascript" src="/assets/guitars.js?body=1">
<script id="someTemplate" type="text/javascript" src="/assets/someTemplate.js?body=1">
<script id="application" type="text/javascript" src="/assets/application.js?body=1">