David Ruby wrote:

> I can do redirection in ASP (Active Server Pages) like this:
> 
>    Response.Redirect "another_url.htm"
> 
> May I know the equivalent in ruby?

As far as the HTTP protocol is concerned, all you do is print:

Location: http://wherever/another_url.htm

As a side note: relative paths in Redirects (Location:) are not 
permitted by the HTTP RFC (at least last I read). Hence, some RFC strict 
browsers (like Mozilla builds up till very recently), will not be able 
to follow the redirect. Always send a complete URL, not a filename or 
relative path.

/ Thomas Stromberg