I am having hands on Rails 3.1 rc1. There is a weird issue keeps bothering me. Whenever I use link_to
function, the link href
also appearing.
For example:
<%= link_to 'Say Hello' , '/say/hello' %>
produces the below output in the browser
Say Hello (`/say/hello`)
I don't know why the link href
also displaying this way.
I tried the below as well:
< a href="/say/hello"> Say Hello < /a>
Still the same output. It seems like the issue is not related to Rails???
Please help. You advise is valuable.
Are you using blueprint? I was seeing the same issue, and it was due to blueprint's print.css
:
a:link:after, a:visited:after {
content: " (" attr(href) ")";
font-size: 90%;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.