title: Correct place to put downloadable files in Rails 5
body: <p>I recently made a website for someone in which they want to have a free download of a card game that they made in the form of a .zip file.</p>
  
  <p>I have the download working but was wondering if there is a "correct" place to put public downloadable files according to Rails. When I put the .zip file in my public folder and change my download_cards method to reflect the changes I get an "unable to locate file" error message.</p>
  
  <p>This is my setup for the download:</p>
  
  <p>Controller:</p>
  
  <pre><code>class DownloadsController &lt; ApplicationController
      def download_cards
          send_file "#{Rails.root}/app/assets/downloads/cardgame.zip", type: "application/zip", x_sendfile: true
      end
  end
  </code></pre>
  
  <p>Routes:</p>
  
  <pre><code>Rails.application.routes.draw do
  
    root 'static_pages#home'
  
    get 'download_cards', to: "downloads#download_cards"
  
  end
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>&lt;%= link_to "download the cardz", download_cardz_path %&gt;
  </code></pre>