From: Harnish Botadra Date: 2007-10-18T17:18:30+09:00 Subject: MySQL connection issue... Hey All, I am getting the following error in my Ruby Script: -------------------------- mysql_adapter.rb:322:in `connect': undefined method `[]' for nil:NilClass (NoMethodError) -------------------------- Essentially it occurs at a point when the script tries to connect to the MySQL DB. Sample code: --------------- class Test < ActiveRecord::Base def self.foo end end Test.transaction do # => Point of error Test.foo # => Another point of error occu... end --------------- Any help greatly appreciated. Thanks. ---Harnish -- Posted via http://www.ruby-forum.com/.