From: David Heinemeier Hansson Date: 2003-11-05T05:04:17+09:00 Subject: Re: CGI uses file size to distinguish between regular values and files > So the problem is an incompatibility between ruby-1.6 and ruby-1.8. > > It can be solved by: > > * obsolete `local_path' and update documentation, > * don't use StringIO or > * switch StringIO to Tempfile when local_path is called. I like the last solution better by far. You'd be able to keep most values as StringIO (in memory). It wouldn't break 1.6.x code that depends on the old behaviour. And it's transparent. Mind you, I still think this is patching a somewhat questionable behaviour, but at least it would work! :) -- David Heinemeier Hansson. http://www.loudthinking.com/ -- Broadcasting Brain