I am trying to connect to MS SQL Server 2000 from rails using this adapter (I installed it via gem install ...).
I am using Rails 1.2.2 (I just installed it on this machine so I have the latest stable of everything as of this date).
I have installed the ODBC bridge and it passes its tests connecting to the same DSN.
My connection info in database.yml is:
development:
adapter: odbc
dsn: sname
username: sa
password: xxxxxx
trace: true
The exception I am getting when I start my rails app with script/server is:
C:\development\ruby\rails\EvoOnRails>ruby script/server
=> Booting WEBrick...
C:/development/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_record
/connection_adapters/abstract/connection_specification.rb:34: uninitialized class variable @@allow_concurrency in ActiveRecord::Base (NameError)
from C:/development/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.
rb:27:in `gem_original_require'
from C:/development/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.
rb:27:in `require'
from C:/development/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/
active_support/dependencies.rb:495:in `require'
from C:/development/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/
active_support/dependencies.rb:342:in `new_constants_in'
from C:/development/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/
active_support/dependencies.rb:495:in `require'
from C:/development/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/
active_record/connection_adapters/abstract_adapter.rb:10
from C:/development/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.
rb:27:in `gem_original_require'
from C:/development/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.
rb:27:in `require'
... 27 levels...
from C:/development/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/commands
/server.rb:39
from C:/development/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.
rb:27:in `gem_original_require'
from C:/development/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.
rb:27:in `require'
from script/server:3
Any suggestions?
Thanks,
Mark
|