Railsで別タブ(別ウインドウ)で開かれるリンクを作る方法
<%= link_to "go on to the next page", URL_PATH, :target=>["_blank"] %>
これでおっけー!
こうするとhtml的に、
<a href="xxx.html" target="_blank">go on to the next page</a>
となって、別タブ(別ウインドウ)で開かれます。
<%= link_to "go on to the next page", URL_PATH, :target=>["_blank"] %>
これでおっけー!
こうするとhtml的に、
<a href="xxx.html" target="_blank">go on to the next page</a>
となって、別タブ(別ウインドウ)で開かれます。