This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Ruby -- constants conflict between QT and ActiveRecord

Tags: None
(comma "," separated)
limemac85
Registered Member
Posts
1
Karma
0
I am somewhat of a Ruby newbie, so I apologize in advance if this seems like a dumb question.

Even the simplest program throws an error when I try to mix qt and
active record in Ruby :( .

The following lines do not work.

require 'active_record'
require 'Qt4'
require 'sqlite3'

class Review < ActiveRecord::Base
end

I get the error:
/usr/local/rvm/gems/ruby-1.9.2-p0/gems/qtbindings-4.6.3.2/lib/Qt/qtruby4.rb:3164:in
`constants': wrong number of arguments (1 for 0) (ArgumentError)
from
/usr/local/rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.3/lib/active_support/core_ext/module/introspection.rb:79:in
`local_constants'


Basically there is a constants defined for Module in qtruby4.rb as
well as introspection.rb
How can I go about resolving such a conflict ? As far as I can see
there are no modules used, just on giant C like global namespace. Is
there any way I can separate qt and active record by namespace ?

Any suggestions on how I can get ActiveRecord and QT working together ?

Thanks !
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I suggest contacting the KDE Bindings team for help here. You are aware of QtSql though right? This would be accessible through the Qt-Ruby bindings.

kde-bindings@kde.org


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
dpalacio
Registered Member
Posts
240
Karma
2
OS
Someone brought this to the mail list already. There is a fix:
http://lists.kde.org/?l=kde-bindings&m= ... 221959&w=2


connect(post, SIGNAL(readSignature()), qapp, SLOT(quit()));


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient