search for: my_send_fil

Displaying 1 result from an estimated 1 matches for "my_send_fil".

Did you mean: my_send_file
2005 Dec 20
0
2005 a send_file odyssey (or Rails and Apache don''t always play well)...
...ming.rb:71: warning: syswrite for buffered IO Which makes me think Rails or Ruby are trying to do low level system writes to a buffered IO stream. My next step is to copy the method referred to in the log message and change it to ensure it doesn''t use low level writes: def my_send_file(path, 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...