title: Ruby Tempfile - Modify file name?
body: <p>I'm using Tempfile to store a generated PDF before uploading to a new destination.  </p>
  
  <pre><code>    pdf_file = WickedPdf.new.pdf_from_string(msgbody)
      tempfile = Tempfile.new(['Bob', '.pdf'], Rails.root.join('public','pdf-test'))
      tempfile.binmode
      tempfile.write pdf_file
      tempfile.close
  </code></pre>
  
  <p>While this works fine, the resulting file names, eg- bob20140331-19260-1g6rzr1.pdf are not user friendly.</p>
  
  <p>I understand that Tempfile creates a unique name and why, but I ultimately need to change the name to make it more intuitive/easier to digest for my users.</p>
  
  <p>Is there a recommended way to do so?  Even if its to simply remove the middle (19260)?  Thanks for your time and assistance. </p>