search for: upload_status_for

Displaying 6 results from an estimated 6 matches for "upload_status_for".

2005 Nov 19
0
upload_status_for undefined method?
Hi all, I''m trying to put in an upload progress bar for my application, and when I try: class ContactsController < ApplicationController auto_complete_for :contact, :name upload_status_for :create ... I get this error: undefined method `upload_status_for'' for ContactsController:Class How can that be? Isn''t progress bar part of ActionView, which is installed by default with rails? ||TIA, Vamsee.
2006 Jun 16
2
Javascript error?
...ppear(''status'')", :finish => "$(''message'').innerHTML = arguments[0]" }) %> <%= file_field :album, :file %> <%= submit_tag ''Upload'' %> <%= upload_status_tag %> <%= end_form_tag %> --Controller-- upload_status_for :new def new ... end
2006 Mar 13
0
Upload progress problem with Ajax component
...o_finish(arguments[0])'', :frequency => 5 }) %> <%= file_field ''eSimplyJob'', ''file'' %> <P> <%= submit_tag "Upload" %> </P> <%= upload_status_tag %> <%= end_form_tag %> In my controller: upload_status_for :save_HTML save_HTML (in controller): public def save_HTML @filename = @params[:eSimplyJob][:file].original_filename File.open("#{RAILS_ROOT}/htmlfiles/#{@filename}", "wb") do |f| f.write(@params[:eSimplyJob][:file].read) end puts "Finished with sav...
2006 Feb 04
0
form_tag_with_upload_progress
hi all! i have a PictureController with an upload action: class PictureController < ApplicationController . . . upload_status_for :upload . . . def upload if params[:picture] @message = "File uploaded: " + params[:picture][:file].size.to_s picture = Picture.save(params[:picture]) session.update finish_upload_status "''#{@message}''" end end . . . end and the model: cla...
2006 Apr 24
1
Upload Progress Bar not showing
...et the same message, "Upload starting..." then "Upload finished", only I don''t get a redirect and the file I uploaded isn''t there. This is what my uploads controller looks like: class UploadsController < ApplicationController before_filter :authorize upload_status_for :new [...] def new if request.get? @upload = Upload.new else @upload = Upload.new(@params["upload"]) if @upload.save flash[:notice] = "File uploaded sueccessfully." redirect_to :action => "list" end end end e...
2006 Jan 06
4
Upload Progress Bar Problems
I''m writing an application where the user will be uploading many images and user feedback is essential. I''ve been trying to get the upload progress bar plug-in to work, but thus far have not had any success. I''ve downloaded Sean Treadway''s application code from his site http://sean.treadway.info/demo/upload/ and I followed the steps in his Upload