I am following the "Using Play Framework with scala" tutorial. I am able to follow all the steps except the last one to use the coffeescript with jquery. I can see the javascript file getting generated, but in the browser, I am seeing this error "ReferenceError: $ is not defined". I am new to javascript and coffeescript, here is my coffeescript code:
and here is the javascript as shown in the browser console
is there some syntax issue that can cause the problem? Help appreciated. I am attaching the image, if indentation could be one of the reasons for this to fail.