<%= link_to StackOverflow, 'https://stackoverflow.com/', :target => '_blank' %>
How do I make a link that opens in a new background tab? The above code opens the link of StackOverflow in a foreground tab.
Thanks in advance
UPDATE:
I found an answer from another question
$('a[target="_blank"]').removeAttr('target');
How to do it in Ruby/Rails?