I want to generate the next html link:
<a href="http://url.com">http://url.com</a>
To reproduce it using the link_to
helper I have to write:
<%= link_to "http://url.com", "http://url.com" %>
What doesn't look DRY at all, I was expecting this to work:
<%= link_to "http://url.com" %>
But the above code generate a link targeting the actual request.url
, not the one I'm sending in the param.
Am I missing something?