Would anyone know how to use the require cgi to output an image created
with GD in a seperate ruby script?
example that doesn't work but shows the concept.
#!/usr/bin/env ruby
require 'cgi'
cgi = CGI.new("html3")
cgi.out{
cgi.html{
cgi.head{ "\n"+cgi.title{"This is a ruby test"} } +
cgi.body{ "\n"+cgi.h1{ "A Test ruby page" } +
cgi.br +
cgi.img("/cgi-bin/fills.rb") }
}
}
-Derrick Shoemake