Archive for the ‘General’ Category

I know I said I was going to try and keep the features in “a feature a day” to those not mentioned in popular places, but this feature is one of the few nicest features in Rails made by a contributor outside of the Rails core so I couldn’t resist mentioning it. First, an example [...]

Time#advance and DateTime#advance just got, erm, more betterer in Rails 2.0. In Rails 1.2.6 and earlier, Time#advance and DateTime#advance only accepted :year, :month and :day options. You’d think :hours, :minutes and :seconds would work too but due to a bug in the code (see ticket #9818), you get something like this instead: time = Time.utc(2000,10,1,10,30,45) [...]