J
Jeff Pritchard
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)
On the server:
[foo@bar current]# script/console
Loading development environment (Rails 2.1.0)
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
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)
On the server:
[foo@bar current]# script/console
Loading development environment (Rails 2.1.0)
NameError: uninitialized constant RedCloth::TextileDocrequire 'rubygems' => []
require 'redcloth' => []
RedCloth.new("fred").to_html
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