title: javascript_include_tag Rails 4 generating "/javascripts/" instead of "/assets" in production
body: <p>I have a Rails 4 application with </p>
  
  <pre><code>&lt;%= javascript_include_tag "modernizr", "data-turbolinks-track" =&gt; true %&gt;
  </code></pre>
  
  <p>in the head. In development, the following HTML is rendered, and modernizr is loaded:</p>
  
  <pre><code>&lt;script data-turbolinks-track="true" src="/assets/modernizr.js?body=1"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>In production, the followign HTML is rendered, and modernizr is <em>not</em> loaded (404 not found):</p>
  
  <pre><code>&lt;script data-turbolinks-track="true" src="/javascripts/modernizr.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>In production, <code>/assets/modernizr.js</code> is found and browsable. </p>
  
  <p>The <a href="http://api.rubyonrails.org/classes/ActionView/Helpers/AssetTagHelper.html#method-i-javascript_include_tag" rel="noreferrer">Rails documentation</a> says that the <code>javascript_include_tag</code> should generate </p>
  
  <pre><code>&lt;script data-turbolinks-track="true" src="/assets/modernizr.js?body=1"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>In production, my <code>stylesheet_link_tag</code>s are fine, linking to the <code>/assets/</code> directory. </p>
  
  <p>Why is the <code>javascript_include_tag</code> linking to <code>/javascripts</code> instead of <code>/assets</code> in production, and how can I fix it?</p>