Hyperlinks not rendering properly

D

dubstep

I am trying to put a hyperlink in my view and it is not being rendered
properly.

In my view, I have:

<%= link_to 'Search', 'google.com' %>

the HTML source when rendered is:
<a href="google.com">Search</a>

However, on the browser, it displays:

Search(google.com)


If I try and use a standard 'a href=', it does the same thing.


Has anyone experienced this before?



Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,083
Members
48,773
Latest member
Kaybee

Latest Threads

Top