Re: Any book on CGI programming in Ruby?

In case you’ve not seen it, there is a short chapter here:

http://www.ruby-doc.org/docs/ProgrammingRuby/html/web.html

Then when you find it’s too slow, look at fastcgi/fcgi/scgi - or
reorganise
your app so that it runs as a standalone HTTP server, and proxy HTTP
requests to it from your front-end webserver.