如何在Ruby中实现进度条? [英] How to implement a progress bar in Ruby?

查看:234
本文介绍了如何在Ruby中实现进度条?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们要在一个Ruby应用程序中实现一个用于上传文件的进度条.这需要显示上载的确切百分比.但是,尽管我们尽了最大的努力,我们仍然找不到实现完全复制文件上传过程的进度条的方法.

We want to implement a progress bar for file uploading in one of our Ruby application. This needs to show the exact percentage of the upload. However, despite our best efforts we could not find a way to implement a progress bar that exactly replicate the file upload process.

您能帮我们吗?

推荐答案

如果您使用的是Apache和Passenger,则可以使用Apache进度栏模块.

If your are using Apache and Passenger, you can use the Apache progress bar module.

截屏视频: http://www.railsillustrated.com/screencast- file-uploads-progress-in-rails-passenger.html

Apache模块和安装说明: http://drogomir.com/blog/2008/6/18/upload-progress-bar-with-mod_passenger-and-apache

Apache Module and installation instructions: http://drogomir.com/blog/2008/6/18/upload-progress-bar-with-mod_passenger-and-apache

这篇关于如何在Ruby中实现进度条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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