title: How do I call images in a subdirectory? Rails 4 app breaks when I push to production
body: <p>I have a rails app that performs fine in development but as soon I as I push to production it breaks. It was working fine until I added a <code>/gifs</code> subdirectory to the <code>/images</code> directory.</p>
  
  <p>I'm pulling a random gif in the directory and displaying it.</p>
  
  <pre><code>&lt;%= image_tag "assets/gifs/#{rand(10)}.gif" %&gt;
  </code></pre>
  
  <p>I've also tried</p>
  
  <pre><code>&lt;%= image_tag "gifs/#{rand(10)}.gif" %&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;%= asset_url("gifs/#{rand(10)}.gif") %&gt;
  </code></pre>
  
  <p>But nothing is working. How should I structure this?</p>