mbleigh/acts-as-taggable-on — Issue #209: Rails 3.2 incompatible
Author: ariejan
Created: 2011-12-20 08:12:45+00:00
State: open

Both the latest stable gem as well as `master` cause an `ActiveRecord::ConnectionNotFound` error when using Rails 3.2.rc1. This is the case for any rake task and using the `rails` command.

Disabling `acts-as-taggable-on` resolves the problem.

I have no problems running with Rails 3.1.3

```
$ rake spec --trace
rake aborted!
ActiveRecord::ConnectionNotEstablished
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activerecord-3.2.0.rc1/lib/active_record/connection_adapters/abstract/connection_pool.rb:374:in `retrieve_connection'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activerecord-3.2.0.rc1/lib/active_record/connection_adapters/abstract/connection_specification.rb:168:in `retrieve_connection'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activerecord-3.2.0.rc1/lib/active_record/connection_adapters/abstract/connection_specification.rb:142:in `connection'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activerecord-3.2.0.rc1/lib/active_record/model_schema.rb:219:in `table_exists?'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activerecord-3.2.0.rc1/lib/active_record/base.rb:413:in `inspect'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:190:in `inspect'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:190:in `start'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:352:in `block in compile'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:351:in `each'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:351:in `compile'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:381:in `__define_runner'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:426:in `block in __update_callbacks'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:423:in `each'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:423:in `__update_callbacks'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:492:in `set_callback'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activemodel-3.2.0.rc1/lib/active_model/validations.rb:139:in `validate'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activemodel-3.2.0.rc1/lib/active_model/validations/with.rb:95:in `block in validates_with'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activemodel-3.2.0.rc1/lib/active_model/validations/with.rb:83:in `each'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activemodel-3.2.0.rc1/lib/active_model/validations/with.rb:83:in `validates_with'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activerecord-3.2.0.rc1/lib/active_record/validations/uniqueness.rb:176:in `validates_uniqueness_of'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/bundler/gems/acts-as-taggable-on-eda92025c8e0/lib/acts_as_taggable_on/tag.rb:17:in `'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/bundler/gems/acts-as-taggable-on-eda92025c8e0/lib/acts_as_taggable_on/tag.rb:2:in `'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/bundler/gems/acts-as-taggable-on-eda92025c8e0/lib/acts_as_taggable_on/tag.rb:1:in `'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/dependencies.rb:251:in `require'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/dependencies.rb:251:in `block in require'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/dependencies.rb:251:in `require'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/bundler/gems/acts-as-taggable-on-eda92025c8e0/lib/acts-as-taggable-on.rb:19:in `'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `each'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `block in require'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `each'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `require'
/Users/ariejan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler.rb:122:in `require'
/Users/ariejan/Development/falcon/config/application.rb:7:in `'
```