Hi all, I''m running into a problem trying to get the upload progress feature working in rails 0.13.1 (locomotive 3.0). My controller looks like this: class DocumentController < ApplicationController before_filter :authorize, :load_user upload_status_for :upload def upload if request.post? @message = ''File uploaded: '' + params[:document][:file].size_to_s finish_upload_status "#{@message}" end end end However, when I try to visit this action I get the following error: undefined method `upload_status_for'' for DocumentController:Class /app/controllers/document_controller.rb:4 routing.rb:219:in `traverse_to_controller'' generated/routing/recognition.rb:3:in `eval'' generated/routing/recognition.rb:3:in `recognize_path'' Anyone have any ideas?
Peter Earle <peter.earle@...> writes:> I''m running into a problem trying to get the upload progress feature > working in rails 0.13.1 (locomotive 3.0).I''m running into the same problem on Windows and Rails 0.13 and haven''t found a solution...
Peter Earle <peter.earle@...> writes:> > Hi all, > > I''m running into a problem trying to get the upload progress feature > working in rails 0.13.1 (locomotive 3.0). > > [..] > > Anyone have any ideas? >try enable_upload_progress in your controller class, befor calling upload_status_for :upload ckubu
So far, I haven''t heard of any reports of the upload progress working on windows. The most probable cause is that the ruby fcgi C bindings are difficult to compile on windows. Also, it''s best to put "ActionController::Base.enable_upload_progress" in you config/ environment.rb instead of the controller. -Sean On Oct 18, 2005, at 7:22 PM, ckubu wrote:> Peter Earle <peter.earle@...> writes: > > >> >> Hi all, >> >> I''m running into a problem trying to get the upload progress feature >> working in rails 0.13.1 (locomotive 3.0). >> >> [..] >> >> Anyone have any ideas? >> >> > > try enable_upload_progress in your controller class, befor calling > upload_status_for :upload > > ckubu > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >