From: Gale CC Date: 2007-06-28T07:31:04+09:00 Subject: Ajax with Ruby problem I'm a newbie to both Ruby and Ajax. I'm trying to use Ruby to handle the server side of an Ajax application, but the script doesnt run and instead of the output the source code shows up. I'm running these scripts on Apache. I've made sure that the script is executable but its still not running. Any help with this would be greatly appreciated. I've tried Googling for this problem but didnt get any helpful results. My source code looks as follows: ruby script(test2.rb): #!/usr/local/bin/ruby -w response = Time.now puts response html script - this script is supposed to display the time in the "Time" field when the user enters text in the "Name" field.
Name: Time:
-- Posted via http://www.ruby-forum.com/.