title: Rails 5 - redirect or render after downloading file
body: <p><strong>Quick Summary</strong> - Using <code>wicked_pdf</code> gem to generate a PDF. After generating a PDF, I would like to redirect to another page.</p>
  
  <p><strong>My Code</strong></p>
  
  <pre><code>def show
   @form = Form.find(params[:id])
    respond_to do |format|
      format.html
      format.pdf do
        render pdf: "MyFile",
          template: 'forms/show.html.erb',
          disposition: 'attachment',
          locals: { f: @f },
          layout: 'pdf.html'
      end
    end
  end
  </code></pre>
  
  <p><strong>Problem</strong> - After the PDF gets downloaded, I cannot <strong>redirect</strong> to an action or <strong>render</strong> a view.</p>
  
  <p>Since there can only be one HTTP response per request, what is another way to redirect <strong>and</strong> render?</p>