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

>   At the top of your script do this:
>
> require 'rubygems'
>   require 'active_support'
>
> Cheers-
>
> -- Ezra Zygmuntowicz
> -- Lead Rails Evangelist
> -- [email protected]
> -- Engine Yard, Serious Rails Hosting
> -- (866) 518-YARD (9273)

-- 
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.

Reply via email to