title: Rails Asset Pipeline - wrong fingerprint
body: <p>My Rails 4 application has <code>new.html.erb</code> which has a reference to <code>form.html.erb</code>:</p>
  
  <pre class="lang-html prettyprint-override"><code># app/assets/templates/jobs/new.html.erb
  ...
  &lt;ng-include src="'&lt;%= asset_path("jobs/form.html") %&gt;'"&gt;&lt;/ng-include&gt;
  ...
  
  # app/assets/templates/jobs/form.html.erb
  my form is here
  </code></pre>
  
  <p>(<a href="http://docs.angularjs.org/api/ng.directive%3angInclude" rel="nofollow"><code>ng-include</code></a> is <a href="http://angularjs.org/" rel="nofollow">AngularJS</a> directive)</p>
  
  <p>The problem is, that when <code>form.html.erb</code> changes, the production environment still loads the old <code>form.html.erb</code>. This is happening probably because <code>new.html.erb</code> hasn't been changed, and therefore has the same old fingerprint, which points to <code>form.html.erb</code> with the old fingerprint.</p>
  
  <p>What is the Rails way to handle this?</p>