Rails 4 - where to store temporarily files?
<p>I am generating txt/pdf documents, saving them (currently) in the <code>/tmp</code> directory, uploading them to Amazon S3 and then removing them from the <code>/tmp</code> directory.</p>

<p>The problem is that when I deploy some new code while a new file being currently generated, the process of generating is interrupted, because the file is removed from the <code>/tmp</code> directory.</p>

<p>Where is the best to store temporary documents within the Rails system?</p>