Re: Active Record not found
- From: Gray Bowman <gray.bowman@xxxxxxxxx>
- Date: Sat, 30 Jun 2007 06:02:26 +0900
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/.
.
- References:
- Active Record not found
- From: Gray Bowman
- Re: Active Record not found
- From: Bira
- Active Record not found
- Prev by Date: Re: Threads issue.
- Next by Date: Re: newby non/programmer trying to understand classes
- Previous by thread: Re: Active Record not found
- Next by thread: Re: Active Record not found
- Index(es):