Forum: Ruby on Rails Require statements fail under rails?

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.
Ac1feb66b7653d4e113cc3a31ae94e1d?d=identicon&s=25 Ryan Nielsen (Guest)
on 2006-03-23 03:41
(Received via mailing list)
I upgraded from Ruby 1.8.2 to 1.8.4 and now require statements fail
under Rails' environment:

[flashbang:...WebContent/rails/development/requests] ryan%
./script/console
Loading development environment.
>> require 'time'
=> false
>> require 'net/https'
=> false
>> quit


Things work under irb, though:

[flashbang:...WebContent/rails/development/requests] ryan% irb
irb(main):001:0> require 'time'
=> true
irb(main):002:0> require 'net/https'
=> true

What have I screwed up? As far as I can tell, the /usr/lib/ruby
structure is all correct. This reproduces with existing and new rails
projects and breaks a couple of my existing projects quite badly...

--
Ryan
Ac1feb66b7653d4e113cc3a31ae94e1d?d=identicon&s=25 Ryan Nielsen (Guest)
on 2006-03-23 05:16
(Received via mailing list)
Never mind... I was going down the wrong path. The requires failed
because those files were already included by Rails. Duh.

I reinstalled 1.8.4 and my apps all work as expected. *whew*

--
Ryan
This topic is locked and can not be replied to.