title: Rails and Page Specific Javascript
body: <p>Ok, I realise this question has been asked many times but the answers never seems to address the issue/question I have with this.</p>
  
  <p>I have a js file that I would like to include on specific pages only. There are many responses that suggest that I put files into folders and then in the manifest file reference only those folders - for example this Railscast (at about 06:20) talks about this.</p>
  
  <p>However, I only have one application layout file (and I guess this could be the area I'm lacking in) - therefore this file points to the application.js manifest and therefore I can't see how I can include things conditionally.</p>
  
  <p>It's a bit like this resource too - <a href="http://railsapps.github.io/rails-javascript-include-external.html" rel="noreferrer">http://railsapps.github.io/rails-javascript-include-external.html</a> - scroll down to the <strong>page-specific scripts</strong> sub heading and it repeats what the Railscast suggests. But nothing is mentioned of multiple application layout files.</p>
  
  <p>If anyone can help me clarify what to do in this situation I would be most grateful.</p>
  
  <p>I should perhaps point out that I'm using Rails 4.</p>