FAILSAFE error after upgrade to Ruby 1.8.7

After I upgraded to Ruby 1.8.7 no request works (tested in a couple of
apps with different Rails versions):

Does that ring any bell? I've diffed standard cgi.rb in
ruby-1.8.6-p114 and 1.8.7 and see nothing relevant.

This is a bug in Ruby 1.8.7. It's fixed in svn but hasn't been released.

Rails 2.1 has a workaround and is fully 1.8.7 compatible (1.8.7
backports a lot of stuff from 1.9, breaking older apps).

I recommend staying on 1.8.6 for all pre-2.1 Rails apps.


Excellent, thank you Jeremy.