mbleigh/acts-as-taggable-on — Issue #210: Rails 3.2rc1 and loading
Author: aaronchi
Created: 2011-12-20 15:15:41+00:00
State: open

I haven't tracked the error down yet but the gem seems to not be working correctly with Rails 3.2

When starting up an app an ActiveRecord::ConnectionNotEstablished error get called trying to load validations from the tag model. I think the plugin needs to be smarter about how/when it's loading model instances.

C:/Ruby193/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': ActiveRecord::ConnectionNotEstablished (ActiveRecord::ConnectionNotEstablished)
from C:/Ruby193/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'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activerecord-3.2.0.rc1/lib/active_record/connection_adapters/abstract/connection_specification.rb:142:in `connection'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activerecord-3.2.0.rc1/lib/active_record/model_schema.rb:219:in `table_exists?'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activerecord-3.2.0.rc1/lib/active_record/base.rb:413:in `inspect'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:190:in `inspect'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:190:in `start'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:352:in `block in compile'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:351:in `each'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:351:in `compile'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:381:in `__define_runner'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:426:in `block in __update_callbacks'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:423:in `each'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:423:in `__update_callbacks'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/callbacks.rb:492:in `set_callback'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activemodel-3.2.0.rc1/lib/active_model/validations.rb:139:in `validate'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activemodel-3.2.0.rc1/lib/active_model/validations/with.rb:95:in `block in validates_with'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activemodel-3.2.0.rc1/lib/active_model/validations/with.rb:83:in `each'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activemodel-3.2.0.rc1/lib/active_model/validations/with.rb:83:in `validates_with'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activerecord-3.2.0.rc1/lib/active_record/validations/uniqueness.rb:176:in `validates_uniqueness_of'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/acts-as-taggable-on-2.2.1/lib/acts_as_taggable_on/tag.rb:17:in `'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/acts-as-taggable-on-2.2.1/lib/acts_as_taggable_on/tag.rb:2:in `'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/acts-as-taggable-on-2.2.1/lib/acts_as_taggable_on/tag.rb:1:in `'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/dependencies.rb:251:in `require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/dependencies.rb:251:in `block in require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/dependencies.rb:236:in `load_dependency'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0.rc1/lib/active_support/dependencies.rb:251:in `require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/acts-as-taggable-on-2.2.1/lib/acts-as-taggable-on.rb:19:in `'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.5/lib/bundler/runtime.rb:68:in `require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.5/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.5/lib/bundler/runtime.rb:66:in `each'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.5/lib/bundler/runtime.rb:66:in `block in require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.5/lib/bundler/runtime.rb:55:in `each'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.5/lib/bundler/runtime.rb:55:in `require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.5/lib/bundler.rb:121:in `require'
from C:/sites/relatespace/config/application.rb:8:in `'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.0.rc1/lib/rails/commands.rb:39:in `require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.0.rc1/lib/rails/commands.rb:39:in `'
from script/rails:38:in `require'
from script/rails:38:in `

'