I can "require" a file from the console but not from irb or a simple ruby script. It's not a path issue, the same file is found in both cases. So why is the module namespace an unrecognized constant sometimes and a valid module name others?
Same .rb file both times. This one works: [chr...@ibs-chrisa-ux1 lims_m6.6]$ script/console Loading development environment (Rails 2.3.5) >> require 'aibs/hotfix/logger' [2010-03-17 13:50:02] INFO AIBS::Hotfix::Logger initialized at module load time => [] >> exit ... but this one bombs with a NameError. [chr...@ibs-chrisa-ux1 lims_m6.6]$ irb irb(main):001:0> require 'aibs/hotfix/logger' NameError: uninitialized constant AIBS from /home/chrisa/depot/tech/lims_m6.6/lib/aibs/hotfix/ logger.rb:1 from /local1/home/chrisa/rs_base_dev/ruby/lib/ruby/site_ruby/ 1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /local1/home/chrisa/rs_base_dev/ruby/lib/ruby/site_ruby/ 1.8/rubygems/custom_require.rb:31:in `require' from (irb):1 irb(main):002:0> exit -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.