Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/61.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 轨道相对不跟随链接_Ruby On Rails_Nofollow - Fatal编程技术网

Ruby on rails 轨道相对不跟随链接

Ruby on rails 轨道相对不跟随链接,ruby-on-rails,nofollow,Ruby On Rails,Nofollow,我需要使用link\u to创建无后续链接 我在找这样的东西: “\u blank”%> 但是,当然没有后续操作。您可以使用链接指定其他属性: <%= link_to "example", example_path, rel: 'nofollow' %> 产生: <a rel="nofollow" href="example_path">example</a> NB如果要传递参数,则可能需要额外的大括号::controller\u name,:acti

我需要使用
link\u to
创建无后续链接

我在找这样的东西:

“\u blank”%>


但是,当然没有后续操作。

您可以使用链接指定其他属性:

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

产生:

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

NB如果要传递参数,则可能需要额外的大括号:
:controller\u name,:action=>:ask,:param1=>“setting”},:rel=>“nofollow”%>