Ruby on Rails Sunday, October 31, 2010

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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment