From: Rick DeNatale Date: 2008-03-01T06:59:57+09:00 Subject: Re: Convert characters from hex to string On 2/29/08, Shandy Nantz wrote: > Florian Gilcher wrote: > > On Feb 29, 2008, at 9:08 PM, Shandy Nantz wrote: > > > > >>> in the view. How is the variable used in the view? As an argument to > >> > >> > > > You are abusing link_to. The syntax for linking to a pregenerated > > location is: > > > > <%= link_to 'Trave', @link, #the other arguments %> > > > > Otherwise, you generate a route within you controller with @link > > as :action parameter. > > And parameters will (and have to) be escaped by link generation. > > > > This is really much more of a question for the rails mailing list. > > > > Greetins > > Florian Gilcher > > > I know this has turned out to be a rails like question but the original > question is rooted within the realm of ruby. So far I have tried > CGI.unespace and h method to try and rid a string of characters that > started out as characters but were then converted to hex characters. The h method (which is an alias for html_escape) does just the opposite. What I was driving at in my response is that somewhere in your view code you were doing something like using h which was ADDING the hex characters. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/