A Basic CGI Script : CGI « CGI « Ruby
- Ruby
- CGI
- CGI
A Basic CGI Script
#!/usr/bin/ruby
puts "Content-type: text/html\n\n"
puts "<html><body>This is a test</body></html>"
If you called this script test.cgi then visiting http://www.example.com/test.cgi
Related examples in the same category