Reputation: 911
I have generated pdf in Ruby On Rails by converting the View directly to pdf format.
I tried inclued the following link:
<a target="_blank" href="https://www.google.co.in/">Google</a>
and also the following:
<%= link_to "Google", "https://www.google.co.in/", target: "_blank" %>
But the problem is that even if I've included target="_blank"
the link still opens in the same tab.
Is there any other attribute that does the trick?
Upvotes: 3
Views: 1653
Reputation: 1601
Try with rails link_to
UPDATE
<%= link_to "Google", "https://www.google.co.in/", target: "_blank" %>
Upvotes: 2