Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.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_Ruby On Rails 3 - Fatal编程技术网

Ruby on rails 在导轨中面临链接到的问题

Ruby on rails 在导轨中面临链接到的问题,ruby-on-rails,ruby-on-rails-3,Ruby On Rails,Ruby On Rails 3,鉴于以下情况,我使用link_to: <td><%=link_to("https://www.google.com/")%></td> 但在悬停/点击链接时,仍然会将我重定向到http://localhost:3000/。如何将其重定向到谷歌。 <td><%=link_to("https://www.google.com/", "https://www.google.com/")%></td> 此处的更多详细信息:

鉴于以下情况,我使用link_to:

<td><%=link_to("https://www.google.com/")%></td>

但在悬停/点击链接时,仍然会将我重定向到
http://localhost:3000/
。如何将其重定向到谷歌。


<td><%=link_to("https://www.google.com/", "https://www.google.com/")%></td>

此处的更多详细信息:

链接到
之后,您必须描述要显示为链接的名称,然后传递链接。像这样:

   <td> <%= link_to "Google", "http://www.google.com" %> </td>

有关更多信息:

请尝试此