This code works on one machine but not the other:
puts 1.upto(5)
On the working machine, the code returns '#'.
On the other machine, I get this error:
test.rb:1:in `upto': no block given (LocalJumpError) from test.rb:1
Both machines have rails 2.2.2. The machine where this code works has ruby 1.8.7, while the two machines where this code doesn't work have ruby 1.8.6 and ruby 1.8.7 enterprise edition respectively.