search for: files_controller

Displaying 3 results from an estimated 3 matches for "files_controller".

2007 Mar 23
1
upload progress bar don''t work...please help
...:path_info => ''/files/upload'', :frequency => 1, :drb => ''druby://0.0.0.0:2999''), :in_front => true routes.rb : map.connect ''/files/'',:controller=>"files" files_controller : ##################### class FilesController < ApplicationController session :off, :only => :progress def index end def progress render :update do |page| @status = Mongrel::Uploads.check(params[:upload_id]) logger.info(params[:upload_id]) page.upload_progre...
2011 Aug 21
1
dashboard 1.1.1 with filebucket doesn't show contents of the new file
...;show", "controller"=>"files", "file"=>"dd97364ab0559344d73231f517951595"} Net::HTTPServerException (404 "Not Found"): /usr/lib/ruby/1.8/net/http.rb:2097:in `error!'' lib/puppet_https.rb:34:in `get'' app/controllers/files_controller.rb:23:in `show'' haml (3.0.13) [v] rails/./lib/sass/plugin/rack.rb:41:in `call'' passenger (3.0.8) lib/phusion_passenger/rack/request_handler.rb: 96:in `process_request'' passenger (3.0.8) lib/phusion_passenger/abstract_request_handler.rb: 513:in `accept_and_process_ne...
2007 Feb 22
0
error with send_file.. please help me...
Ben wrote: > API is your friend. > http://api.rubyonrails.org/classes/ActionController/Streaming.html#M000091 > send_file I put this code block in files_controller.rb def send_file(path, options = {}) #:doc: raise MissingFile, "Cannot read file #{path}" unless File.file?(path) and File.readable?(path) options[:length] ||= File.size(path) options[:filename] ||= File.basename(path) send_file_headers! options...