"Ruby Tuesday" wrote:
> The error(s)
> First, a pop up windows with the message as follow:
>      Some files can harm your computer. If the file information below
>      look suspicious, or you do not fully trust the source, do not open or
>      save this file.
> 

Internet Explorer is the problem.  When a content type of text/plain is sent
Internet explorer attempts to open the file using the information in the 
registry based on the file extension.
 
What Internet Explorer will do is take the output and attempt to run it
through the ruby interpreter.  The same problem happens if you have
ActiveState Perl installed and attempt to view web pages that have *.pl
extensions and content-type text/plain.

BTW this is incorrect.
print "Content-type: text/html \n\n\n"

It should be
print "Content-type: text/html \r\n\r\n"