I'm pretty sure the shebang line is correct. I verified by doing "which 
ruby" and also ran the file independently from the shell by typing 
"./test2.rb" and it works.

Also the file runs fine when its set as an "action" to a form, but not 
in this case when its run from inside a javascript script. Any idea 
what's wrong ?

-- 
Posted via http://www.ruby-forum.com/.