From: Hans Fugal Date: 2005-10-19T01:07:03+09:00 Subject: Strange error: QtRuby and AR (sqlite3) I'm developing a recipe app for my wife using ActiveRecord (with sqlite3) and QtRuby. It "works" on my iBook, but when I try to test it on my Debian sarge box I get the following: /usr/local/lib/site_ruby/1.8/rubygems.rb:172:in `method_missing': unresolved method call (ArgumentError) from /usr/local/lib/site_ruby/1.8/rubygems.rb:172:in `activate' from /usr/local/lib/site_ruby/1.8/rubygems.rb:171:in `each' from /usr/local/lib/site_ruby/1.8/rubygems.rb:171:in `activate' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:23:in `require' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:200:in `require' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:10:in `require_library_or_gem' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connection_adapters/sqlite_adapter.rb:15:in `sqlite3_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/query_cache.rb:52:in `send' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/query_cache.rb:52:in `connection=' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:108:in `retrieve_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:239:in `connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:751:in `add_limit!' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:746:in `construct_finder_sql' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:343:in `find' from ./lib/neelix/view/qt.rb:31:in `initialize' from /home/fugalh/src/neelix/bin/neelix:15:in `new' from /home/fugalh/src/neelix/bin/neelix:15 Line 31 of qt.rb is simply recipes = Recipe.find(:all) which doesn't really match the error at all. ActiveRecord is installed via gems, and rails on this box is working fine (lam.fugal.net - also using sqlite3). QtRuby is installed by hand (version 1.0.9) and it works fine as well. When I fire up irb and load everything but the gui by hand I can see and use the db via AR just fine. I'm completely confounded, and I think it might be something deeper like maybe QtRuby and gems (or at least the AR version from gems) not playing nicely, even though it works fine on my laptop. (There I also have qtruby from hand, AR and sqlite3 from gem)