# Qtruby problem, can't show rescourcefile

**URL:** <https://www.ruby-forum.com/t/qtruby-problem-cant-show-rescourcefile/106321>\
**Category:** Ruby\
**Created:** [June 8, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/qtruby-problem-cant-show-rescourcefile/106321 "2007-06-08T15:51:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anansi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9fc348/32.png) [@anansi](https://www.ruby-forum.com/u/anansi)\
**Post date:** [June 8, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/qtruby-problem-cant-show-rescourcefile/106321/1 "2007-06-08T15:51:32Z")

</div>

Hi,  
I created with the qtdesigner a MainWindowForm and saved it as \*.ui then  
I converted it with rbuic to a ruby recoursefile named win.rb and I’m  
trying to use it with trunk.rb but I’m always getting this fanzy  
errormsg:

y$ ruby trunk.rb  
/usr/lib/ruby/1.8/Qt/qtruby.rb:1186:in `==': undefined method`to\_i’ for  
true:TrueClass (NoMethodError)  
from /usr/lib/ruby/1.8/Qt/qtruby.rb:931:in `initialize' from /usr/lib/ruby/1.8/Qt/qtruby.rb:1367:in`call’  
from /usr/lib/ruby/1.8/Qt/qtruby.rb:1367:in `try_initialize' from /usr/lib/ruby/1.8/Qt/qtruby.rb:1366:in`catch’  
from /usr/lib/ruby/1.8/Qt/qtruby.rb:1366:in `try_initialize' from ./win.rb:132:in`new’  
from ./win.rb:132:in `initialize' from trunk.rb:7:in`initialize’  
from trunk.rb:15:in `new’  
from trunk.rb:15

something seems wrong with my trunk.rb but I can’t figure out what. Can  
someone of you help?
