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>
I don't explicitly include the javascript file in any of my views, yet the console prints:
This javascript file is included.
Logging from the application.html