Santosh Turamari
2009-Apr-10 07:58 UTC
code open the external links in new tab, or new window
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=''http://www.someurl.com''
onclick=''window.open(this.href,''_blank'');return
false;'' ><img
src=''http://jobeehive.com/images/industry_sponsors/somurl.jpg''
title=''aaaaaa'' /></a>"
end
please help me out.. its urgent.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---