[Kde-bindings] qtruby and active record in ruby 1.9

Alex x37v.alex at gmail.com
Mon Mar 7 22:22:05 UTC 2011


A few months back Stefano Crocco posted about the qtruby
incompatibility with active record.  I'm wondering if there has been
any work done to resolve this?

The posting is here:  http://lists.kde.org/?l=kde-bindings&m=129231601221959&w=2

The issue is still exists in the most recent gem version of qt ruby
[qtbindings (4.6.3.2)]

(alex at alex-laptop:~) irb
Welcome to IRB. You are using ruby 1.9.2p0 (2010-08-18 revision 29036)
[i686-linux]. Have fun ;)
>> require 'Qt4' #=> true
>> require 'active_record' #=> true
>> ActiveRecord::Base.establish_connection(:adapter  => "mysql",
(>>)                                           :username => "developer",
(>>)                                           :host     => "localhost",
(>>)                                           :password => "omitted",
(>>)                                           :database => "mydatabase")
ArgumentError: wrong number of arguments (1 for 0)
        from /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/qtbindings-4.6.3.2/lib/Qt/qtruby4.rb:3164:in
`constants'
        from /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.5/lib/active_support/core_ext/module/introspection.rb:79:in
`local_constants'
        from /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.5/lib/active_support/core_ext/module/introspection.rb:86:in
`local_constant_names'
        from /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:128:in
`block in watch_namespaces'
        from /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:125:in
`map'
        from /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:125:in
`watch_namespaces'
        from /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:592:in
`new_constants_in'
        from /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:225:in
`load_dependency'
        from /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in
`require'
        from /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.5/lib/active_record/base.rb:5:in
`<top (required)>'
        from (irb):3
        from /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/irb_rocket-0.1.3/lib/irb_rocket.rb:57:in
`block in signal_status'
        from /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/irb_rocket-0.1.3/lib/irb_rocket.rb:18:in
`call'
        from /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/irb_rocket-0.1.3/lib/irb_rocket.rb:18:in
`capture'
        from /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/irbtools-0.7.2/lib/irbtools.rb:195:in
`capture'
        from /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/irb_rocket-0.1.3/lib/irb_rocket.rb:56:in
`signal_status'
        from /home/alex/.rvm/rubies/ruby-1.9.2-p0/bin/irb:17:in `<main>'>>


Thanks,
Alex



More information about the Kde-bindings mailing list