I’m using Ruby’s CGI to handle some forms, and the form input is to be
further used to query a database. But I’m getting errors when I try to
use the DBI module to connect to the database. Even just typing
“require ‘dbi’” is screwing up things. For instance in the following
code, nothing would show up unless I remove “require ‘dbi’”.
print “Content-type: text/plain\n\n”
puts “Thanks- form submitted”
If instead of using the print command, I try to use cgi.out then I get
“500 Internal Server Error”. Does anyone know a fix to this problem ?