search for: performed_render

Displaying 5 results from an estimated 5 matches for "performed_render".

2007 Feb 22
0
error with send_file.. please help me...
...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 @performed_render = false if options[:stream] render :text => Proc.new { |response, output| logger.info "Streaming file #{path}" unless logger.nil? len = options[:buffer_size] || 4096 File.open(path, ''rb'') do |file| i...
2005 Dec 20
0
2005 a send_file odyssey (or Rails and Apache don''t always play well)...
...th, options = {}) 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 @performed_render = false if options[:stream] render :text => Proc.new { |response, output| logger.info "Streaming file #{path}" unless logger.nil? len = options[:buffer_size] || 4096 File.open(path, ''rb'') do |file|...
2007 Feb 23
1
How to make Rails send a file that is being written
...d be overwritten: 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 @performed_render = false if options[:stream] render :text => Proc.new { |response, output| logger.info "Streaming file #{path}" unless logger.nil? len = options[:buffer_size] || 4096 File.open(path, ''rb'') do |file| if output.respond_to?(:sy...
2007 May 29
4
cache everything but...
I saw this older post when searching for information: On Feb 16, 5:10 pm, Ingo Weiss <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > withfragmentcachingonecancacheparts of a page. However, more often > than not what I would need is the exact opposite approach. I would like > to be able to use action cashing and have a mechanism for telling Rails > to
2006 Jun 16
0
rake spec controller test output hideus.
...arningruby/config/../log/test.log>, @shift_size=1048576, @shift_age=0>, @formatter=nil, @default_formatter=#<Logger::Formatter:0x24696cc @datetime_format=nil>>, @variables_added=nil, @template=#<#<Class:0x251ee78>:0x24d4f80 ...>, @controller=#<UserController:0x24d6a9c @performed_render=true, @headers={"Status"=>"200 OK", "cookie"=>[], "Cache-Control"=>"no-cache"}, @cookies={}, @db_rt_after_render=0, @flash={:warning=>"Signup unsuccessful"}, @assigns={"template_root"=>"/Users/jgb/Development/...