From logs:
---
Premature end of script headers: eruby
/usr/lib/ruby/1.8/cgi.rb:725:in `out'
private method `print' called for "":String
( NoMethodError )
I think it is caused from $DEFAULT_OUTPUT setted to nil.
I think you started your script with eruby, not with ruby. Have you
named your file
test.erb? In this case try renaming the file to test.rb, chmod it
executable and include a line
#!/usr/bin/ruby
or wherever your ruby executable lives at the beginning of the test
file. If you want to test eruby try this:
From logs:
---
Premature end of script headers: eruby
/usr/lib/ruby/1.8/cgi.rb:725:in `out'
private method `print' called for "":String
( NoMethodError )
I think it is caused from $DEFAULT_OUTPUT setted to nil.