Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: Active Record not found
John Pywtorak
6/29/2007 9:49:00 PM
replace activerecord with active_record
Rinse and repeat ;-)
--- 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-...
.
>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Active Record not found
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password