From: "jamecook@..." Date: 2007-10-27T12:55:04+09:00 Subject: Re: ActiveRecord / SQL Server / ADO On Oct 26, 2:59 pm, Jayson Bailey wrote: > I'm trying to use ActiveRecord with SQL Server and ADO in a regular ruby > script, but can't get it working. I've seen a bunch of examples but > can't get them to work. > > Here's what I've got: > > require 'rubygems' > require 'active_record' > > class TestMO < ActiveRecord::Base > > ActiveRecord::Base.establish_connection( > :adapter => "sqlserver", > :mode => "ado", > :database => "mydb", > :username => "user", > :password => "pass" > ) > > set_table_name "test_mo" > end > > I've got the ADO.rb in the right place I believe. > > Here's the error I'm getting: > > custom_require.rb:27:in `gem_original_require': no such file to load > -- > Posted viahttp://www.ruby-forum.com/. I believe you need to use 'gem' or 'require_gem' for active_record.