Forum: Ruby on Rails code open the external links in new tab, or new window

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Santosh T. (Guest)
on 2009-04-10 11:58
Hi all,
 I have a problem to open an add in my app in new tab, it is opening in
the same tab of my site.

in my view I have added
<%= show_industry_sponsor(@community.industry) %>

and in application_helper.rb
def show_industry_sponsor(industry)

     return "<a href=''
onclick=','_blank');return false;' ><img
title='aaaaaa' /></a>"


please help me out.. its urgent.
This topic is locked and can not be replied to.