Forum: Ruby on Rails Ruby 1.9, Rails 2.3.2, and MSSQL issue

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
btomlin (Guest)
on 2009-04-03 03:38
(Received via mailing list)
I am having a strange issue.  I have upgraded to ruby 1.9.1 to do some
testing on one of my machines.  My app accesses a MSSQL database to
pull in some information.  Everything worked fine with ruby 1.8.6, but
now if I try to navigate to a page that accesses that database I get
this error:

DBI::InterfaceError in PagesController#company
Unable to load driver 'ODBC' (underlying error: uninitialized constant
DBI::DBD::ODBC)

I'm using activerecord-sqlserver-adapter (1.0.0.9250), dbd-odbc
(0.2.4), and dbi (0.4.1)
Emanuele T. (Guest)
on 2009-04-03 04:23
(Received via mailing list)
I would say not all gems are mature for 191! Am I wrong?
btomlin (Guest)
on 2009-04-03 05:25
(Received via mailing list)
You are right. The reason I posted this was because it was working
using script/console, which would have meant the gems were all working
with 1.9.1, but not when navigating to the page on the site. Then I
realized that I was still running irb under ruby 1.8.6.  Once I
updated that to 1.9.1 it quit working. So yes it appears to be the
gems are incompatible with 1.9.1.
This topic is locked and can not be replied to.