[Rails] Url encoding Help Pls!

Bing
Tue, 30 May 2006 16:39:35 -0000

Hi guys,

it''s me again, I want to come up with the following url:

www.mysite.com/webpage?myid=1

I keep coming up with the following url:

www.mysite.com/webpage%3Fmyid%3D1

require ''uri''
$myurl = URI.escape("webpage?myid=")
redirect_to(:action => $myurl + 1 )

what am I doing wrong?

I also tried
require ''cgi''
$myurl = CGI::unescape("webpage?myid=")
redirect_to(:action => $myurl + 1 )

oh no, what''s going wrong? Also, on top of that, can you help what the
difference between CGI and URI is?

thanks in advance,

Bing

--
Posted via http://www.ruby-forum.com/.