开发者

Using DBI in Rails

开发者 https://www.devze.com 2023-01-25 05:14 出处:网络
I\'m using Rails 3.0.0.rc and have installed the \'dbi\' gem inside my gemfile and 开发者_如何学Goran bundle install. But when I do the following require, it returns an error of \'no such file to load

I'm using Rails 3.0.0.rc and have installed the 'dbi' gem inside my gemfile and 开发者_如何学Goran bundle install. But when I do the following require, it returns an error of 'no such file to load -- dbi'

require 'dbi'

What am I doing wrong? Am I using the wrong gem? Please help.


You shouldn't have to require the gem once it's in your Gemfile.

0

精彩评论

暂无评论...
验证码 换一张
取 消