From: Jonathan P. <jp...@dc...> - 2005-12-23 11:17:32
|
> I replaced the tutorial rb_main.rb with the simple > example rb_main.rb since they seemed to do the same > thing and I know simple example works. > after rbfiles each do... > I added some debugging puts > puts File.basename(path) > require( File.basename(path) ) > puts "this is ok " > Controller.rb > /Users/anne/Desktop/learning ruby/ruby > projects:addon/Code/build/Development/RubyCocoaTar.app/Contents/ > Resources/rb_main.rb:17:in > `require': No such file to load -- Controller.rb (LoadError) > This require must be the problem since it does not print > the "this is ok" Could you explain exactly how you are attempting to run the program? Using 'ruby rb_main.rb' will not work - you have to start the compiled stub program in the Contents/MacOS directory or open the application as you would any other (from the Finder or use the 'open' command). |