title: How to download file with send_file?
body: <p>Can someone enlighten me how can I download file with <code>send_file</code>?</p>
  
  <p>I have a file <code>image.jpg</code> inside <code>app/assets/images</code>. I've tried this in my controller:</p>
  
  <pre><code>def download
      send_file ("#{Rails.root}/public/images/image.jpg")
  end
  
  def download
      send_file ("#{Rails.root}/assets/images/image.jpg")
  end
  
  def download
      send_file ("#{Rails.root}/images/image.jpg")
  end
  
  def download
      send_file ("/public/images/image.jpg")
  end
  
  def download
      send_file ("/assets/public/images/image.jpg")
  end
  
  def download
      send_file ("/assets/images/image.jpg")
  end
  </code></pre>
  
  <p>For each path it says:</p>
  
  <pre><code>ActionController::MissingFile in HomeController#download
  Cannot read file 'some_path'
  </code></pre>
  
  <p>What could be a problem here? Thanks!</p>