require_gem 'activerecord' # deprecated? What to do?

Discussion in 'Ruby' started by RichardOnRails, Dec 21, 2011.

  1. 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
     
    RichardOnRails, Dec 21, 2011
    #1
    1. Advertisements

  2. Hi All,

    I stumbled along and resolve most issues. I'll post my demo
    ActiveRecord app when I resolve the last issue (or two?)
     
    RichardOnRails, Dec 21, 2011
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.