require_gem 'activerecord' # deprecated? What to do?

R

RichardOnRails

Hi,

I just started the first example on p. 18 of
"Pro Active Record" (2007), which opens with:

require 'rubygems'
require_gem 'activerecord' #fails ... deprecated?

Google search suggests the substitution of "gem", but that leads to
the failure
"uninitialized constant ActiveRecord (NameError)" on a subsequent
line.

These problems occur under both 1.8.6 and 1.9.2 running under WinXP-
Pro/SP3.

Any ideas?

Thanks in Advance,
Richard
 
R

RichardOnRails

Hi,

I just started the first example on p. 18 of
"Pro Active Record" (2007), which opens with:

require 'rubygems'
require_gem 'activerecord'  #fails ... deprecated?

Google search suggests the substitution of "gem", but that leads to
the failure
"uninitialized constant ActiveRecord (NameError)" on a subsequent
line.

These problems occur under both 1.8.6 and 1.9.2 running under WinXP-
Pro/SP3.

Any ideas?

Thanks in Advance,
Richard

Hi All,

I stumbled along and resolve most issues. I'll post my demo
ActiveRecord app when I resolve the last issue (or two?)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top