I have a rails 4 app where I am storing urls in a database. When rails escapes it, the link is no longer usable when I try to call it again.
So I use:
<%= @product.url.html_safe %>
But isn't vulnerable to XSS? I read up on raw() as well but it seems to the do the same thing as html_safe?