title: Paperclip and Amazon S3 how to do paths?
body: <p>How do I create paths with paperclip when using Amazon S3?</p>
  
  <p>My directory on my bucket is:</p>
  
  <pre><code>/image/:id/:filename
  </code></pre>
  
  <p>My model:</p>
  
  <pre><code>  has_attached_file :image,
      :storage =&gt; :s3,
      :bucket =&gt; 'mybucket',
      :s3_credentials =&gt; {
        :access_key_id =&gt; ENV['S3_KEY'],
        :secret_access_key =&gt; ENV['S3_SECRET']
      }
  </code></pre>