Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Andy Koch
RE: 0.4.3 and RoR [ reply ]  
2007-12-10 21:03
oh bother,

I'm sorry, I had to run the Debian dpkg-reconfigure after removing the 1.5 stuff. Everything's working now.

Thanks

By: Scott Knight
RE: 0.4.3 and RoR [ reply ]  
2007-12-10 20:08
Andy, FireRubyis not only for Rails 2.0. Keep in mind there are two parts to firebird support in rails. One part is the FireRuby pacakge which is the low level database access. The second part is the firebird-adapter in rails itself. The firebird-adapter is the glue between rails and the actual database. In addition to working on FireRuby I have also been working on the firebird-adapter in rails. http://dev.rubyonrails.org/ticket/10287 has been submitted to improve support in rails. This patch is for Rails 2.0 There were bugs in the rail code that would prevent FireRuby from working. Usually in rails theres is a developement log that has all the queries that are being run. The log above doesn't tell me much except line 36 in the rails code had an error but maybe you could provide the developement.log file from rails that has information on queries being run? It seems like maybe something is set up wrong in your database.yml file and it is causing FireRuby to crash while trying to connect to your database. What is the contents of your database.yml?

By: Andy Koch
0.4.3 and RoR [ reply ]  
2007-12-10 19:12
Hi Scott,

is the new FireRuby only for Rails 2.0? I'm running RoR 1.2.6

I upgraded my Firebird to 2.0 (from 1.5) and I get the following ActiveRecord - FireRubyException... (this is from console session)

Loading development environment.
>> EnglishString.find(:first)
FireRuby::FireRubyException: FireRuby::FireRubyException
from /var/lib/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/firebird_adapter.rb:36:in `connect'
from /var/lib/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/firebird_adapter.rb:36:in `firebird_connection'
from /var/lib/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in `send'
from /var/lib/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in `connection_without_query_cache='
from /var/lib/gems/1.8/gems/activerecord-1.15.6/lib/active_record/query_cache.rb:54:in `connection='
from /var/lib/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:230:in `retrieve_connection'
from /var/lib/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in `connection_without_query_cache'
from /home/andy/stringsDB/external/vendor/plugins/query_cache/lib/query_cache.rb:83:in `query_caches'
from /home/andy/stringsDB/external/vendor/plugins/query_cache/lib/query_cache.rb:87:in `query_cache'
from /home/andy/stringsDB/external/vendor/plugins/query_cache/lib/query_cache.rb:114:in `connection'
from /var/lib/gems/1.8/gems/activerecord-1.15.6/lib/active_record/base.rb:1139:in `add_limit!'
from /var/lib/gems/1.8/gems/activerecord-1.15.6/lib/active_record/base.rb:1101:in `construct_finder_sql'
from /var/lib/gems/1.8/gems/activerecord-1.15.6/lib/active_record/base.rb:997:in `find_every'
from /var/lib/gems/1.8/gems/activerecord-1.15.6/lib/active_record/base.rb:991:in `find_initial'
from /var/lib/gems/1.8/gems/activerecord-1.15.6/lib/active_record/base.rb:417:in `find'