title: rails: pictures do not show up on heroku, but works locally
body: <p>My pictures show up locally, but after pushing to Heroku, they don't show up.</p>
  
  <p>I have tried different paths.</p>
  
  <p>This is the image tags:</p>
  
  <pre class="lang-html prettyprint-override"><code>
  &lt;img alt="ava" src="/assets/ava.jpg" /&gt;
  
  </code></pre>
  
  <p>The strange thing is, the directory tree in Rails is like this <code>app/assets/images/ava.jpg</code> however, if I put this (correct) path, the images do not even show up locally.</p>
  
  <p>After precompiling the assets, the images appear in <code>public/assets/ava-xteohutnbhueb.jpg</code> which means they got extra token at the end of their names. </p>
  
  <p>When the app is pushed to heroku, the images do not show up at all, either with <code>src="/assets/ava.jpg"</code> or <code>src="/assets/images/ava.jpg"</code></p>
  
  <p>Why do they show up locally with wrong paths and why don't they show up on Heroku?</p>