From: David Leal Date: 2001-03-29T20:40:04+09:00 Subject: [ruby-talk:13321] erb and cgi Hi all, I seem to be having a strange problem with the cgi module when combined with tiny eRuby. I have this: #!/usr/bin/env ruby require 'cgi' cgi = CGI.new( "html3" ) cgi.out do cgi.html do "dudes!" end end when I do 'ruby t.rb' I get (offline mode: enter name=value pairs on standard input) ^D Content-Type: text/html Content-Length: 74 dudes! (edited to fit) everything ok so far. If add 'require erb/erb' I get this (offline mode: enter name=value pairs on standard input) ^D /usr/lib/ruby/1.6/cgi.rb:467:in `out': private method `print' called for # (NameError) from t.rb:7 Any suggestions? Thanks, David