开发者

Ruby on Rails anchors/links during development problem

This may not be a big problem but I find this one as irritating. I wasn't able to figure it out. I have anchors in my site using link_to开发者_如何学C and even normal tags. Example:

<a href="#">Demo</a> will show up as Demo(#)

<a href="/authenticate/">Authenticate</a> would show up as Authenticate (/authenticate)

But if I view the source from the browser, I can't see a problem.

Does anybody know about this problem? I am using Rails 3 and a MAC.

Thank you, Junrey


I finally found the answer to my problem and it has something to do with the Blueprint CSS Framework that I am using.

I need to remove this content: " (" attr(href) ") "; from print.css which shows something like this:

a:link:after, a:visited:after { content: " (" attr(href) ") "; font-size: 90%; }

Found the solution from Ruby-Forum (http://www.ruby-forum.com/topic/206645#935056).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜