Forum: Ruby on Rails can activesupport gem be used in "standalone" fashion?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Acd8aa879da8c19cf623dc6269eafb87?d=identicon&s=25 john peter (Guest)
on 2006-03-31 22:12
(Received via mailing list)
i'm using ruby 1.8.2, rubygem 0.8.10, rails 1.0.0 where activesupport
version = 1.2.5

when i try to run this in RADRail, i get a NoMethodError:

require 'rubygems'
require_gem "activesupport"

print Time.now + 2.days

the error message is: c:/e312workspace/first/test3.rb:5: undefined
method `days' for 2:Fixnum (NoMethodError)

is there a way to use the numeric/time core_ext in a plain ruby app? if
so, how?
thanks for any help!
This topic is locked and can not be replied to.