红宝石与Plupload滑轨 [英] Ruby on Rails with Plupload

查看:151
本文介绍了红宝石与Plupload滑轨的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找的Ruby上传解决方案on Rails的,我可以同时上传多个大型图像文件,并显示进度,上传者,让他们知道该文件被上传。我无意中发现了Plupload这似乎完美的我想要做的,但我找不到任何的Ruby on Rails的例子就如何将其纳入我的应用程序。任何线索,基本的例子,甚至有更好的Rails文档替代方法将大大AP preciated。

I am looking for an upload solution for Ruby on Rails where I can upload multiple large image files simultaneously and show the progress to the uploader so they know the files are being uploaded. I stumbled onto Plupload which seems perfect for what I'm trying to do, but I can't find any Ruby on Rails examples on how to incorporate into my application. Any leads, basic examples, or even alternative methods with better Rails documentation would be greatly appreciated.

为寻找谢谢:)

推荐答案

我不Plupload任何经验。您可以尝试 uploadify SWFUpload的。两者都允许上传多个文件和任何显著Plupload做,需要的Flash安装。在我看来uploadify更容易实现比SWFUpload的,这是非常个性化。

I haven't any experience with Plupload. You can try uploadify or swfupload. Both allow to upload multiple files and whatever significant Plupload do and require Flash to be installed. In my opinion uploadify easier to implement than swfupload and it is very customizable.

下面是一些例子:

  1. uploadify_paperclip_demo
  2. swfupload_demo
  1. uploadify_paperclip_demo
  2. swfupload_demo

您可以找到关于github.com更多的例子。你还需要在后端的一些文件附件插件如曲别针或附件福。

You can find more examples on github.com. And you need some file attachment plugin on back-end like paperclip or attachment-fu.

您可以前提交表单这里找到像preVIEW一些提示。如果你使用嵌套形式,这里是复杂外形范例。请参阅不显眼,jQuery的分支。您可以添加新的孩子在uploadify的onComplete时间。

You can find some tips on image preview before form submitting here. And if you use nested forms, here is complex-form-examples. See the unobtrusive-jquery branch. You can add new child on onComplete event of uploadify.

我用uploadify用曲别针,preVIEW和嵌套形式。

I use uploadify with paperclip, preview and nested forms.

更新。

下面是一些例子如何使用Plupload的回报率:

Here are some examples how to use Plupload in RoR:

文件上传和Rails 3,Plupload和CarrierWave

的Ruby on Rails +回形针+ PlUpload

这篇关于红宝石与Plupload滑轨的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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