On 2/29/08, Shandy Nantz <shandybleu / yahoo.com> wrote:
> Chris Hulan wrote:
> > On Feb 29, 1:06 pm, Shandy Nantz <shandyb... / yahoo.com> wrote:
>
> >> -S
> >> --
> >> Posted viahttp://www.ruby-forum.com/.
> >
> > FYI
> > irb(main):003:0> CGI.unescape 'http://www.example.com%2flogic%3fss
> > %3d1%26companyname%3dshhhhhhh%26userlogin%3dshhhhh%40/'
> > => "http://www.example.com/logic?
> > ss=1&companyname=shhhhhhh&userlogin=shhhhh@/"
> >
> > cheers
>
>
> I should clarify here - I am using RoR to do all of this. I had made a
> post in the Rails forum but knowbody was answering. As for the
> clarifying part, I am building this link in my controller and then
> passing it to my view to be added into a link. The reason I do this is
> that in my controller I generate a hash that is used to create an access
> key for each user who is logging in, which becomes park of the link
> string and then is passed to the view. However, the CGI.unescape isn't
> working.
So presumably you are building the string without escapes in the
controller. I suspect that it's getting escaped after that, probably
in the view. How is the variable used in the view? As an argument to
some helper, like maybe h?
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/