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) If I use script/console everything works fine, and it worked fine in with ruby 1.8.6 as well. Does anyone have any ideas? I am baffled. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Thu, Apr 2, 2009 at 1:39 PM, btomlin <b@websitefu.com> wrote:> > 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) > > If I use script/console everything works fine, and it worked fine in > with ruby 1.8.6 as well. Does anyone have any ideas? I am baffled. >What version of the MySQL gem you''re using with Ruby 1.9.1 and Rails 2.3.2? -Conrad --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
It''s not MySQL, its MSSQL so I''m using activerecord-sqlserver-adapter (1.0.0.9250), dbd-odbc (0.2.4), and dbi (0.4.1) On Apr 2, 5:05 pm, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Thu, Apr 2, 2009 at 1:39 PM, btomlin <b...-viA2RjBvAuAvtab9mdV7tw@public.gmane.org> wrote: > > > 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) > > > If I use script/console everything works fine, and it worked fine in > > with ruby 1.8.6 as well. Does anyone have any ideas? I am baffled. > > What version of the MySQL gem you''re using with Ruby 1.9.1 and Rails 2.3.2? > > -Conrad--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---