Require statements fail under rails?

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%
Loading development environment.

require ‘time’
=> false

require ‘net/https’
=> false


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…


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


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs