From: Belorion Date: 2005-01-13T01:58:26+09:00 Subject: Re: Webrick, erb, and .rhtml > You misread the page. It says exactly what you got. Notice it is > showing eruby and erb examples. The erb example gives what you got. Now I feel silly :P. Thanks. > <% print "hello" %> goes to stdout. > > <%= "hello" %> is a short-cut for something like <% response.print > "hello" %> which may or may not be/include stdout. > > So depending on how stdout is handled during building the template, <% > print "hello" %> may or may not work. In the examples on the erb page, > it shows it working for eruby but not for erb. > > Nick That's tough luck for me then. I have a significantly large rhtml project that uses lots of puts and print because that works fine in Apache/eRuby/mod_ruby. Guess I have a lot of busy work ahead of me, changing all my puts/prints to <%= "" %> if I want to support Webrick serving. Thanks for the help! One last question... using ERBHanlde instead of FileHanlder, this works fine (brining up index.html): localhost:2000/~test/ However, if I use: locahost:2000/~test/index.html I get a permission denied error. Why? They are both accessing the same files...