title: RAILS: paperclip and creation date based directory structure
body: <p>does anyone know how I can configure my rails model, which is using paperclip for data storage, to use creation date based directories like for example in fleximage ??</p>
  
  <p>At present I'm using:</p>
  
  <pre><code>has_attached_file :bookblock, :path =&gt; "#{CONF['storage_path']}bookblock/:id_partition/:style.:content_type_ehas_attached_filextension"
  </code></pre>
  
  <p>but what I need is something like this</p>
  
  <pre><code>has_attached_file :bookblock, :path =&gt; "#    {CONF['storage_path']}bookblock/:created_at_year/:created_at_month/:created_at_day/:c:id_partition/:style.:content_type_ehas_attached_filextension"
  </code></pre>
  
  <p>a simple :created_at in the directory path would also help</p>
  
  <pre><code>{CONF['storage_path']}/:created_at/bookblock/:id_partition/:style.:content_type_ehas_attached_filextension"
  </code></pre>
  
  <p>Thanx in advance,</p>
  
  <p>Alex</p>