title: How to write into a temporary file from Rails
body: <p>How to write into a temporary file (in the temp folder of a machine) from a Rails app, I am using <code>Spreadsheet::Workbook.new</code> and I want the contents to be written into a temp file</p>