Ruby 1.8.4 upgrade screws up ActiveRecord


#1

Okay, so I upgraded to Rails 1.1 on my Windows development machine and
everything worked fine. Then I went to upgrade to Ruby 1.8.4 from
1.8.2, launched WEBrick and browsed to 127.0.0.1:3000 and here’s what I
get:

Errno::EBADF in Front#index
Bad file descriptor - connect(2)

c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/vendor/mysql.rb:108:in
initialize' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/vendor/mysql.rb:108:inreal_connect’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/mysql_adapter.rb:331:in
connect' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/mysql_adapter.rb:88:ininitialize’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/mysql_adapter.rb:37:in
mysql_connection' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:251:inconnection_without_query_cache=’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/query_cache.rb:54:in
connection=' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:220:inretrieve_connection’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in
connection' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1044:inadd_limit!’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1017:in
construct_finder_sql' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:924:infind_every’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:381:in
find' #{RAILS_ROOT}/app/controllers/front_controller.rb:14:inindex’

Line 14 in front_controller.rb is my first ActiveRecord call.

Am I doing something wrong or should I be submitting a ticket? I can’t
find anything anywhere about this so I’m guessing its something I did.

Thanks in advance!


#2

Nevermind, I’m an idiot. Please ignore. :slight_smile: