From: Bill Kelly Date: 2009-11-26T06:29:16+09:00 Subject: Re: Ruby a good choice for CGI? From: "Nick Dr" > > Can someone point me in the right direction here? My app is VERY small. > Practically no code, no HTML output. All I need is to execute the 2 or 3 > Ruby functions I already have, on the net, with some basic > cookie/session support. What's the least headache(and not terribly slow) > way to do this? Others have already mentioned Sinatra, which looks nice. Another framework which also allows starting very simple is Ramaze: [ http://ramaze.net/ ] require 'ramaze' class MainController < Ramaze::Controller def index "Hello, World! Server clock reads: #{Time.now}" end end Ramaze.start :port => 9001, :adapter => :webrick At this point the HTTP server is running on a custom port. However, it's not difficult to integrate that with the webserver, as described here: http://wiki.ramaze.net/Deployment Regards, Bill