Solved now, >> require 'active_support/all' => true >> Time.now.beginning_of_day => Mon Nov 01 00:00:00 1300 2010
Ben Williams wrote in post #957932: > Please can anyone explain why this works in rails but not in irb ? > >>> require 'active_support' > => true >>> Time.now.beginning_of_day > NoMethodError: undefined method `beginning_of_day' for Fri Oct 29 > 14:05:28 +1300 2010:Time > from (irb):2 > > > Thanks > Ben > -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

