I just installed the SQL Server Adapter Gem from gems.rubyonrails.org for my new Rails 2.0 project:
gem install activerecord-sqlserver-adapter --source=http://gems.rubyonrails.org
When I attempt to use it, I receive this error message:
TypeError: superclass mismatch for class SQLServerAdapter
from /var/lib/gems/1.8/gems/activerecord-sqlserver-adapter-1.0.0/lib/active_record/connection_adapters/sqlserver_adapter.rb:190
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /home/sladd/development/workspace/DSES2/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:496:in `require'
from /home/sladd/development/workspace/DSES2/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
Any ideas? My database.yml looks like this:
development:
adapter: sqlserver
mode: odbc
dsn: dses_rollup
username: sa
password:
Has anyone successfully installed the new SQL Server adapter as a gem into a Rails 2.0 project?
I've asked the Ruby on Rails Talk Google Group, so we'll see if that turns up any help.
3 comments:
I have installed the SQL server gem with a Rails 2.0 app. I wrote it up on my blog, go to the SQL server Tag. http://lindsaar.net/sql-server-and-rails It was fairly painless.
Adapter for 2.2/2.3 on SQL Server 2000/2005/2008 with all tests passing!
Github Project:
http://github.com/rails-sqlserver/
RubyForge Project:
http://rubyforge.org/frs/?group_id=8023
Adapter for 2.2/2.3 on SQL Server 2000/2005/2008 with all tests passing!
Github Project:
http://github.com/rails-sqlserver/
RubyForge Project:
http://rubyforge.org/frs/?group_id=8023
Post a Comment