阅读背景:

Paperclip gem和数据库Rails 2.3中的自定义文件名

来源:互联网 

I'm trying to create a custom filename for files uploaded via the paperclip gem using Paperclip.interpoles in the initializer. The problem I'm having is this is updating the custom filename on the file system when the file is uploaded, but the database filename remains the name of the source file. Is there a better way then having to reassign the database attribute to handle this?I'm trying to create a custom filename for file




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: