Ruby on rails 在导轨中面临链接到的问题
鉴于以下情况,我使用link_to: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> 此处的更多详细信息:
<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>
有关更多信息:请尝试此