开发者

Rails rel nofollow link

I need to create no follow links with link_to.开发者_如何学Python

I'm looking for something like this:

<%= link_to "example", example_path, :target => "_blank" %>

But for no follow of course.


You can specify other attribues with link_to:

<%= link_to "example", example_path, rel: 'nofollow' %>

Produces:

<a rel="nofollow" href="example_path">example</a>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜