In my rails app, in a javascript file in assets/javascripts, the first line is
console.log("This javascript file is included")
. In My application.html, I include this right after the head:
<script type = "text/javascript">
console.log("Logging from the application.html")
</script>
我任何观点中都没有明确包括 标本文件, 但是控制台的指纹:
This javascript file is included.
Logging from the application.html