2012-10-28 2 views
0
<%= link_to StackOverflow, 'https://stackoverflow.com/', :target => '_blank' %> 

새 배경 탭에서 열리는 링크는 어떻게 만듭니 까? 위의 코드는 전경 탭에 StackOverflow 링크를 엽니 다. 사전에백그라운드 (Ruby)에서 새 페이지 탭 열기

감사

UPDATE :

내가 another question 루비/레일에서 작업을 수행하는 방법에

$('a[target="_blank"]').removeAttr('target'); 

에서 답을 찾았나요?

+0

비슷한 질문 : http://stackoverflow.com/questions/4086988/how-do-i-make-link-to-open-external-urls-in-a-new-window –

+0

이보다 더 유사 http://stackoverflow.com/questions/498530/open-a-new-tab-in-firefox-and-keep-ff-in-the-background?rq=1 어떻게해야합니까? 그 루비/레일 방법? ... :) – jezureru

답변

0
<%= link_to StackOverflow, 'http://stackoverflow.com/', :target => 'new' %> 
여기
관련 문제