Attachment_fu或Paperclip for Rails3 [英] Attachment_fu or Paperclip for Rails3
问题描述
我刚刚升级到rails3,并且在安装我通常的attachment_fu插件时失败了.因此我开始使用它进行谷歌搜索,尽管我确实设法找到了rails3版本,但似乎有更多的人在谈论使用rails3的回形针.
I have just upgraded to rails3 and when I installed my usual attachment_fu plugin failed. So I started googling it and although I did manage to find a rails3 version there seemed to be a lot more people talking about paperclip with rails3.
首先,回形针的优点是什么?
So firstly what are the advantages of paperclip?
它对rails3是否有更好的支持?
Is there better support for rails3 with it?
推荐答案
都没有.使用 carrierwave .
要处理文件上传,我已从Paperclip切换到CarrierWave.尽管Paperclip在(并且将继续)在我使用的许多应用程序中为我提供良好的服务,但我非常感谢CarrierWave采用的模块化方法.对于您使用哪个流行的S3客户端(同时支持aws/s3和right_aws),都无法确定.它也与ORM无关,并且与Active Record紧密相关. Paperclip的紧密耦合使我们在工作中有些痛苦,我也对Paperclip对aws/s3和right_aws的支持状态感到困惑.因此,我很高兴找到这个新项目,维护者Jonas Nicklas似乎是一个反应灵敏且乐于助人的家伙,这始终是一件好事.该代码看起来不错,到目前为止,我在使用该库时过得很轻松. (摘自: http://trevorturk.com/2010/2/8/kzak-an-open-source-web-based-jukebox/)
更多信息在这里:
这篇关于Attachment_fu或Paperclip for Rails3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!