search for: write_nonblock

Displaying 2 results from an estimated 2 matches for "write_nonblock".

2007 Dec 14
4
Error when loading backgroundrb
I''m getting the following error (when doing script/backgroundrb start) on my local machine, which is running os x 10.4.11. However, it works just fine on my linux server. RAILS_ROOT/vendor/plugins/backgroundrb/lib/../framework/nbio.rb:64:in `dump_object'': undefined method `write_nonblock'' for #<UNIXSocket: 0x135b5f4> (NoMethodError) I just grabbed the latest (r274) from the repository, and my Packet gems are identical. I also deleted the backgroundrb script and re- ran rake backgroundrb:setup. Any thoughts? Thanks, Todd
2010 Dec 05
0
Rails - Using Tempfile to write on Heroku?
Hello, I need to be able to write a temporary file for use during the request only. Locally I can use the following successfully: tempfile = File.open(a.original_filename,''w'') tempfile.write_nonblock(a.body) paperclip stuff........ tempfile.close That works great, but not on Heroku... How can I do the above with Heroku''s restrictions: http://docs.heroku.com/constraints#read-only-filesystem I''m not understanding how to translate the above into: `#{RAILS_ROOT...