From: Jeff Pritchard Date: 2008-08-19T05:53:47+09:00 Subject: require not working on server I'm developing on a Mac and deploying to a RHEL4 linux server. For some reason while "require" returns a boolean on the Mac, it is returning an empty array "[]" on the server. Where can I find the code for "require" and what makes it return an empty array instead of a boolean? This seems to be only in the Rails app I'm working on. If I do this same sequence in IRB, it works as expected on both machines. Thanks much for any ideas/assistance... jp On the mac: JP-iMac:synergy jeffpritchard$ script/console Loading development environment (Rails 2.1.0) >> require 'rubygems' => false >> require 'redcloth' => true >> RedCloth.new("fred").to_html => "

fred

" >> quit On the server: [foo@bar current]# script/console Loading development environment (Rails 2.1.0) >> require 'rubygems' => [] >> require 'redcloth' => [] >> RedCloth.new("fred").to_html NameError: uninitialized constant RedCloth::TextileDoc from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:275:in `load_missing_constant' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:467:in `const_missing' from /usr/lib/ruby/gems/1.8/gems/RedCloth-4.0.2/lib/case_sensitive_require/../redcloth.rb:17:in `new' from (irb):3 >> -- Posted via http://www.ruby-forum.com/.