method
upload_progress_update_bar_js
rails latest stable - Class:
ActionView::Helpers::UploadProgressHelper
upload_progress_update_bar_js(percent=nil)public
Javascript helper that will create a script that will change the width of the background progress bar container. Include this in the script portion of your view rendered by your upload_status action to automatically find and update the progress bar.
Example (in controller):
def upload_status render :inline => "<script><%= update_upload_progress_bar_js %></script>", :layout => false end