如何在Ruby中实现进度条? [英] How to implement a progress bar in 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屋!