In my Rails 3.1.0.rc4 application, if I do something like this:
<%= link_to "Back to Feature Index", features_path %>
I get this in the view :
Back to Feature Index (/features)
SO, I tried this:
<a href = "blah"> HTML link </a>
and I got this:
HTML link (blah)
I don’t know why is this happening.
UPDATE:
In the first case, the HTML generated is:
<a href="/features">Back to Feature Index</a>
and the same is with the second case.
SO, I guess its something to do with the CSS. How can I fix this?
In the two examples you gave, what are the values of 1) the linked text, and 2) the
hrefin the generated HTML?If the
hrefsare correct, but the linked text is not, it’s possible that a stylesheet is adding the (href) displayed portion.Try adding
a:after { content: ""; }to your stylesheet.