valibuk.net

A place for opinions and notes of a valibuk.

require_gem ‘activerecord’

Tagged with: — ondrej at 1:05 am on Tuesday, March 11, 2008

A Ruby application that uses the ActiveRecord library (not a Ruby on Rails application) stopped working for me after an update of Ruby. The error message was:

  1. undefined method `require_gem’ for main:Object (NoMethodError)

The corresponding source code was:

  1. require ‘rubygems’
  2. require_gem ‘activerecord’

(There is more where this came from … )