So my application.js file is including jquery accordingly, and everything I’ve put directly into it.
However, one of my controllers – lets call it Books – has its own books.js file
I want the books.js file only to be present when viewing pages within the books controller.
It doesn’t seem to be including it at all though – any ideas?
First you should look at http://railscasts.com/episodes/279-understanding-the-asset-pipeline
Second in app/assets/javascripts/application.js
does it contain something like
or