I recently started learning Rails and came across a file called welcome.js.coffee in the assets javascripts directory.
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
After adding the function below:
$(document).ready ->
alert "Hello World"
I noticed that I need to include
//= require welcome
in my application.js file in order for the alert to display. Is there something I'm missing or do I still have to manually require the file even though the welcome.js.coffee file claims its logic will automatically be available in application.js?