Topic: Refering to external link
Hi, I`ve seen some similar posts but they doesn`t have the same problem as me.
I want to put an external link to an anchor but Rails puts the base url before the link.
The curious thing is that it just happens when I get the link from the database.
That works fine:
<%= link_to "teste", "http://youtube.com", :only_path => true %>
But that doesn't:
<%= link_to "teste", video.link, :only_path => true %>
Thanks in advance!
Last edited by will_af (2012-03-01 16:16:14)