From: Edward Date: 2006-09-08T11:20:08+09:00 Subject: ruby website code ignores function When I run the following script as a web page, it ignores the output of my function and doesn't print the "test2" as if there is a problem with the function. How can I fix this? I pasted the code below. View Example: http://www.tanguay.info/learnruby/nofunction.rb Thanks, Edward Tanguay All my projects: http://www.tanguay.info ===================================== #!/usr/bin/ruby print "Content-type: text/plain\n\n" 3.times { print "Hello World\n" } print "test1" print sayHello("Jim") print "test2" def sayHello(name) result = "Hello" + name return result end