title: How to display files uploaded using carrierwave, fog and local storage with rails application?
body: <p>I am using carrierwave with fog to create a simple image uploading process on my server. 
  The goal is to have images stored in my server in this folder : </p>
  
  <pre><code>/opt/myapp/uploads/
  </code></pre>
  
  <p>I have configured carrierwave and fog with that parameters and the upload is working very well : </p>
  
  <pre><code>CarrierWave.configure do |config|
  
    config.fog_credentials = {
      :provider               =&gt; 'Local', 
      :local_root             =&gt; '/opt/myapp/' 
    }
    config.fog_public     = false               
    config.fog_directory  = 'uploads/' 
  
    config.storage = :fog
    config.asset_host = proc do |file|
      '/opt/myapp/uploads/'
    end
  end
  </code></pre>
  
  <p>When I upload an image I can see that it is stored in the corresponding folder. But how can I display them in my web pages ? 
  The generated url is</p>
  
  <pre><code>http://localhost:3000/opt/myapp/uploads/&lt;path-to-my-image&gt;.png
  </code></pre>
  
  <p>So my application tries to get images from an opt/ folder in my rails application directory, but how could I tell it to retrieve them from the server filesystem instead ?</p>