Active Record not found

replace activerecord with active_record

Rinse and repeat :wink:

···

--- Original Message ---

> What happens if you replace "gem 'activerecord'" with "require
> 'activerecord'"?

Upon changing I receive this error:
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in

`gem_original_require': no such file to load -- activerecord
(LoadError)
  from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in

`require'
  from app/gatherer.rb:3

Which to my eyes appears that activerecord may not be installed.

HOWEVER I tried this:

require 'active_record'

and it seems to work, until:

C:\InstantRails\ruby\lib\ruby\gems\1.8\gems\activesupport-1.4.2\lib/active_support/dependencies.rb:376:in

`new_constants_in': undefined method `empty?' for nil:NilClass

(NoMethodError)
  from
C:\InstantRails\ruby\lib\ruby\gems\1.8\gems\activesupport-1.4.2\lib/active_support/dependencies.rb:495:in

`require'
  from
C:\InstantRails\ruby\lib\ruby\gems\1.8\gems\activesupport-1.4.2\lib/active_support.rb:34
  from
C:\InstantRails\ruby\lib\ruby\gems\1.8\gems\activerecord-1.15.3\lib/active_record.rb:30:in

`require'
  from
C:\InstantRails\ruby\lib\ruby\gems\1.8\gems\activerecord-1.15.3\lib/active_record.rb:30
  from app/gatherer.rb:2:in `require'
  from app/gatherer.rb:2

--
Posted via http://www.ruby-forum.com/\.