2
沒有人知道我可以如何配置我的rails模型,它使用數據存儲回形針來使用基於創建日期的目錄,例如在fleximage中?RAILS:基於回形針和創建日期的目錄結構
目前我使用的是:
has_attached_file :bookblock, :path => "#{CONF['storage_path']}bookblock/:id_partition/:style.:content_type_ehas_attached_filextension"
,但我需要的是這樣的事情
簡單:created_at目錄路徑,也將有助於
{CONF['storage_path']}/:created_at/bookblock/:id_partition/:style.:content_type_ehas_attached_filextension"
Thanx提前,
亞歷克斯
thanx很多;)現在我知道名稱「插值」,我可以找到一切:https://github.com/thoughtbot/paperclip/wiki/Interpolations – 2010-12-13 15:47:44