I have used the Windows installer for FastCGI from RubyForge. I have
that LoadModule and AddHandler in my conf file per the install file. We
I navigate to 127.0.0.1/test.fcgi I get the script printed out on the
screen and not its output.

I am using this script:

#!ruby
require 'cgi'
require 'fcgi'

FCGI.each_cgi do |cgi|
  content = ''
  env = []
  cgi.env_table.each do |k,v|
    env << [k,v]
  end
  env.sort!
  env.each do |k,v|
    content << %Q(#{k} => #{v}<br>\n)
  end
  cgi.out{content}
end

My CGI files run fine.

Robert