Rails 3回形针vs载波vs蜻蜓vs附件_fu [英] Rails 3 paperclip vs carrierwave vs dragonfly vs attachment_fu

查看:105
本文介绍了Rails 3回形针vs载波vs蜻蜓vs附件_fu的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Rails 2.3.11,Ruby 1.9.2应用程序升级到Rails 3.0.10,并且attachment_fu不再起作用.

I'm working on upgrading a Rails 2.3.11, Ruby 1.9.2 app to Rails 3.0.10, and attachment_fu no longer works.

我正在考虑使用回形针,载波或蜻蜓来上传文件,或者可能是与Rails 3兼容的,维护版本的attachment_fu.

I'm looking at changing to paperclip, carrierwave, or dragonfly for file uploads, or maybe a Rails 3 compatible, maintained version of attachment_fu.

就性能而言,以下哪个选项最适合使用,它的维护程度如何,从attachment_fu升级的难易程度,也许会与Rails 3.1兼容?每个人的主要优点和缺点是什么?

Which of these options would be the best to use in terms of performance, how well maintained it is, how easy it is to upgrade from attachment_fu, and maybe is it going to be Rails 3.1 compatible? What are the major strengths and disadvantages of each one?

任何见识都会受到赞赏.

Any insight would be appreciated.

推荐答案

我同时使用了Paperclip和Carrierwave,如果我是你,我会选择Carrierwave. 它更加灵活.我也喜欢这样的事实,它不会因配置而使您的模型混乱.您可以改为定义上载器类.它使您可以轻松地重用,扩展等您的上传配置.

I've used both Paperclip and Carrierwave, and if I were you, I'd go for Carrierwave. It's a lot more flexible. I also love the fact that it doesnt clutter your models with configuration. You can define uploader classes instead. It allows you to easily reuse, extend etc your upload configuration.

您看过Carrierwave广播吗? http://railscasts.com/episodes/253-carrierwave-file-uploads

Did you watch the Carrierwave railscast? http://railscasts.com/episodes/253-carrierwave-file-uploads

回形针虽然不是一个坏选择,但长期以来一直是最佳"选择.但是,Carrierwave绝对看起来像是新一代;)

Paperclip is not a bad choice though, it's been the "best" choice for a long time. But Carrierwave definitely seems like the new generation ;)

这篇关于Rails 3回形针vs载波vs蜻蜓vs附件_fu的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆