Forum: Ruby on Rails Interesting differences between Windows and Linux

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Tom F. (Guest)
on 2005-12-26 04:20
(Received via mailing list)
I have some controller code that uses the 'httpdate' method of a
'created_on' field from my database.  I'm running Rails on the Edge.  My
development environment is Windows XP, my 'production' environment is
Debian Linux.

When I upgraded my 'production' machine for the first time in a month, I
start getting an error that 'httpdate' is not a method of 'created_on'.
This part of the code is unchanged.  This method is defined in 'time.rb'
as part of the Ruby distribution.

If I add "require 'time'" to my controller, all is well again.  I can
find no "require 'time'" line in my vendor Rails code.

Some questions:

1.	Why did my original code work with earlier versions of Edge
2.	Why did my original code work on Windows but not Linux?
3.	Is this a production vs development issue?
4.	What else is different that I may not find until I'm in
5.	Is it my responsibility to do the "require" here, or is it
reasonable to expect Rails to do this for me?
This topic is locked and can not be replied to.