[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

302 Permanently Moved

John W. Long

9/16/2003 9:24:00 PM

What's the correct way to do this with mod_ruby?

Is this:

Apache::request.status = 301
Apache::request.headers_out['location'] = "http://my.org/t...

The same as this:
require 'cgi'
cgi = CGI.new
cgi.header(
'status' => '301 Moved Permantently',
'location' => 'http://my.org/...
)

Thanks,

John Long