# Rendering a string

**URL:** <https://www.ruby-forum.com/t/rendering-a-string/187411>\
**Category:** Rails\
**Created:** [February 29, 2008, 5:38pm UTC](https://www.ruby-forum.com/t/rendering-a-string/187411 "2008-02-29T17:38:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [February 29, 2008, 5:38pm UTC](https://www.ruby-forum.com/t/rendering-a-string/187411/1 "2008-02-29T17:38:11Z")

</div>

I have this string that get constructed in my controller - a link. Then  
in my view I use that link - which I have stored in a varibale, as the  
action for a link\_to helper. The problem is that some of the characters  
get renered in correctly. The ‘/’, ‘.’, and other get rendered as Hex  
values. Is there a way to make it so that doesn’t happen. Here is my  
code:

\<%= link\_to ‘Book travel online’, {:action =\> “#{@link}”}, :title =\>  
‘Book travel online’, :class =\> ‘page\_links’, :target =\> ‘new’ %\>

Thanks,

-S
