Hi.
I am currently learning Ruby and writing an app that simply uses
Mongrel's HttpHandler class to create simple ruby servlets. At the end
I have been using code similar to the example in simpletest.rb:

 h = Mongrel::HttpServer.new("0.0.0.0", "3000")
 h.register("/test", SimpleHandler.new)
 #h.register("/files", Mongrel::DirHandler.new("."))
 h.run.join

My question:
 Can I accomplish the equivalent to the lines above using
mongrel_rails with the correct params, or will that only work for a
Rails app? I know I can start mongrel with host and port, but how to
do the equivalent of ' h.register("/test", SimpleHandler.new)'  with
mongrel_rails?

Many Thanks for an example.

geoffrey bays
_______________________________________________
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to