Entries from March 2008 ↓

require_gem ‘activerecord’

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: TEXT [Show Styled Code]: undefined method `require_gem' for main:Object (NoMethodError) TEXT [Show Plain Code]: undefined method `require_gem’ for main:Object (NoMethodError) The corresponding source code was: Ruby [Show Styled Code]: require 'rubygems' require_gem [...]