Attachment_fu或Paperclip for Rails3

前端之家收集整理的这篇文章主要介绍了Attachment_fu或Paperclip for Rails3前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我刚刚升级到rails3,当我安装我通常的attachment_fu插件失败.所以我开始搜索它,虽然我设法找到一个rails3版本,似乎有更多的人谈论与rails3的回形针.

那么首先有什么优点呢?

有更好的支持rails3吗?

解决方法

都不是.使用 carrierwave.

To handle the file uploads,I’ve switched from Paperclip to CarrierWave. While Paperclip has (and continues) to serve me well in many applications I work with,I really appreciate the modular approach that CarrierWave takes. It’s agnostic as to which of the popular S3 clients you use,supporting both aws/s3 and right_aws. It’s also ORM agnostic and not tightly coupled to Active Record. The tight coupling of Paperclip has caused us some grief at work,and I’m also confused about the state of Paperclip’s support for aws/s3 and right_aws. So,I was happy to find this new project,and the maintainer Jonas Nicklas seems to be an extremely responsive and helpful dude,which is always good thing. The code looks great,and I’ve had an easy time working with this library so far. (from: 07001)

更多信息:

> http://techblog.moviepilot.com/carrierwave-as-a-replacement-for-paperclip

猜你在找的Ruby相关文章