Just a quick tip for Ruby on Rails; Don’t do render :text => 1 Rather do render :text => '1'
The former causes problems over HTTP when the client is expecting a content length of 4 but only getting 1. You get hanging connections which eventually reset. The latter render will send down the proper content length.
It seems obvious but thanks to the loose typing of Ruby you can, and I did, easily get bitten.
Add New Comment
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Add New Comment
Trackbacks
(Trackback URL)