Hi,This is my first post on this mailing list and I would like to thanks the authors and the community for this great tools.After a couple of weeks happily playing with Rails, I got bitten by a strange behaviour drift between Rails and Ruby:Plain Ruby:$ irbirb(main):001:0> 2 / 5=> 2/5irb(main):003:0> 2.to_f / 5.to_f=> 0.4Ruby On Rails:$ cd /tmp$ rails new t1$ cd t1$ rails consoleLoading development environment (Rails 3.2.9)irb(main):001:0> 2 / 5=> 0irb(main):002:0> 2.to_f / 5.to_f=> 0.4So I just don't get why 2/5 doesn't return the same result in both cases. Personally, I found this behaviour dangerous since many third party libraries will be based on it. I had a quick look at http://guides.rubyonrails.org/active_support_core_extensions.html but could not find any mention of it.Can someone explain me why and how Rails does that?Best regards,--Nicolas Desprès
Hi,This is my first post on this mailing list and I would like to thanks the authors and the community for this great tools.After a couple of weeks happily playing with Rails, I got bitten by a strange behaviour drift between Rails and Ruby:Plain Ruby:$ irbirb(main):001:0> 2 / 5=> 2/5irb(main):003:0> 2.to_f / 5.to_f=> 0.4