Hi guys,
it’s me again, I want to come up with the following url:
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