title: Rails PDF Generation with Prawn in IE7
body: <p>I'm using Prawn and Prawnto to generate a PDF in a Ruby on Rails app (Rails version 2.2.2) which works great and generates PDFs happily and sends them to the user to download in Firefox.</p>
  
  <p>The problem is in IE7.  </p>
  
  <p>I have a route set up like so:</p>
  
  <pre><code>map.invoice_pdf '/invoices.pdf', :controller =&gt; 'invoices', 
                  :action =&gt; 'index', :format =&gt; 'pdf'
  </code></pre>
  
  <p>Which I then have a link like so to call:</p>
  
  <pre><code>invoice_pdf_path(:year =&gt; params[:year], :month =&gt; params[:month], 
                   :unpaid_only =&gt; params[:unpaid_only])
  </code></pre>
  
  <p>And the following in my controller:</p>
  
  <pre><code> def index
      params[:year]  = default params[:year]
      params[:month] = default params[:month]
      params[:page] ||= 1
  
      @invoices = Arobl.find_invoices_for_customer(current_customer.strCustomerID,
                         params)
  
      respond_to do |format|
        format.html{ render :action =&gt; 'index' }
        format.pdf{
          prawnto :inline =&gt; false, :filename =&gt; 
                  "#{current_customer.strCustomerID}_invoice.pdf"
    end
  </code></pre>
  
  <p>In FF this works as expected, when the link is clicked the show action is invoked with a format of .pdf, and responds with the correctly named PDF.  When it's hit with IE7 it says that the file or website could not be found, and references "invoices.pdf" instead of the expected customer_id_invoice.pdf filename.</p>
  
  <p>Any idea what could be causing this behaviour?</p>
  
  <p>Thanks!</p>