From: Brian Candler Date: 2009-02-09T20:25:36+09:00 Subject: Re: DBI Henrik Larsen wrote: > When these methods are executed i get the following error: > Could not load driver (undefined local variable or method `e' for > DBI:Module) > ... (1) Try it from the command line, using irb - firstly using native DBI commands, and then using your wrapper class. Only when it's working there think about porting it into Rails. (2) If you can't get it to work, make the smallest standalone code you can which reproduces the problem. (3) Post this standalone code, and post the *full* unedited backtrace you get when running it. The above error message isn't much use, as it didn't say whether the error was in the DBI code itself, or your code. Finally, beware that DBI has changed quite a bit between 0.2 and 0.4, so if you are reading random pages on the web, beware that they may be out of date. HTH, Brian. -- Posted via http://www.ruby-forum.com/.