Am 27.04.2010 um 20:42 schrieb Thibault Martin-Lagardette:

> Hi!
> 
> Welcome to the MacRuby world ;-).
> 
> I imagine you are running MacRuby 0.5 on your machine, seeing the paths you 
> include in your .rb file? Why are you doing all those includes by the way? 
> All the necessary paths will be in MacRuby's default path.

If I leave out the "include orgy", I get an error: 2010-05-03 21:58:57.384 
Procuratio Menu Server[12756:5f07] LoadError: no such file to load -- webrick

Alex

> 
> On Apr 27, 2010, at 06:34, Alexander von Below wrote:
> 
>> Hello,
>> 
>> I am new to MacRuby, and new to this list, so first a "Hello"!
>> 
>> Secondly, I am trying to start a simple WEBrick in a Ruby App. The WEBrick 
>> code is a sample from a book, and runs fine if started on its own.
>> 
>> But when I evaluate the file in MacRuby within my Cocoa App, a call to 
>> http://localhost:2000/hello yields "Bad Request".
>> 
>> Furthermore (as to be expected), the script does not return. I am happy 
>> creating a separate thread for the Ruby Evaluation in my Cocoa App, but is 
>> there a better way?
>> 
>> My sample project is hosted here: http://github.com/below/RubyTest
>> 
>> I would be very thankful if someone could have a look (and I am sure others 
>> will find this useful information, too)
>> 
>> Thanks a lot!
>> 
>> Alex
>> _______________________________________________
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> 
> _______________________________________________
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to