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