I have suspected issues in Ruby 1.8.6 after seeing calls to a controller method reliably break on the 2nd call despite the arguments being the same and no apparent changes in the data. ----- Original Message ----- From: "Wolfgang Nádasi-Donner" <ed.odanow / wonado.de> To: "Ruby-Core" <ruby-core / ruby-lang.org> Sent: Monday, December 3, 2007 2:15:52 PM (GMT-0600) America/Chicago Subject: Kernel.Integer - possible error Good evening all together! Based on a message in comp.lang.ruby about strange behavior of Kernel.Integer I made a test and found, that it may have an error in Ruby 1.9... >type putsgets.rb puts Integer(gets) puts Integer(gets) >ruby -v ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] >ruby putsgets.rb 5 5 0 0 >ruby19 -v ruby 1.9.0 (2007-12-02 patchlevel 0) [i386-mingw32] >ruby19 putsgets.rb 5 5 0 putsgets.rb:2:in `Integer': invalid value for Integer: "0\n" (ArgumentError) from putsgets.rb:2:in `<main>' Wolfgang Nádasi-Donner