I’m using a simple include directly in an erb :
<%= javascript_include_tag "file.js" %>
I simply took code which was in one of my documents inside script tags and moved it out into this file and placed it in app/assets/javascripts/file.js. Do I have to list this file somewhere? I do not want it included on every page, just certain pages.
In
config/environments/production.rb:Or
Also make sure you got this in your capistrano recipe”