From: GOTOU Yuuzou Date: 2002-11-22T06:53:27+09:00 Subject: Re: redirect in webrick with eruby In message <002c01c290b2$f6c80fc0$2a01a8c0@MICHAELS8200>, `"Michael Hale" ' wrote: > I was able to do a redirect like this: > s.mount_proc("/redirect") { |request, response| > response.set_redirect(WEBrick::HTTPStatus::MovedPermanently, > "/") > } > > However when I try to put the same code inside an erb page I get a > internal server error. > Any suggestions? Sorry, it's a bug of WEBrick. The patch is here: http://www.notwork.org/ipr/cgi-bin/cvsweb.cgi/src/webrick/lib/webrick/httpservlet/erbhandler.rb?cvsroot=ipr&r1=1.20&r2=1.21 -- gotoyuzo