Dear People of Rubyland,
I still can’t get this ruby file running without errors, even when
installing the mongrel prerelease.
Why doesn’t this work in 1.9.3 ?
Is mongrel used much anymore? If not, what are the alternatives?
Code:
require ‘mongrel’
class BasicServer < Mongrel::HttpHandler
def process(request, response)
response.start(200) do |headers, output|
headers[“Content-Type”] = “text/html”
output.write(‘
Hello!
’)
end
end
end
s = Mongrel::HttpServer.new(“0.0.0.0”, “1234”, 20)
Sincerely,
Rashi