Forum: Ruby on Rails ruby embedded code replacement for onclick in link?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dan Wright (Guest)
on 2006-01-16 09:01
(Received via mailing list)
Is there a ruby embedded code replacement for something like this?

<a href="#"
onclick="window.open('http://192.168.78.12:3000/portfolio/show/<%=
item.id %>', 'test', 'width=660, height=500,resizable=no')">
<%= image_tag item.image_url, :size => '200x150' %></a>

Thanks,

Dan
Jan P. (Guest)
on 2006-01-16 14:50
(Received via mailing list)
Hi, Dan,

have a look at the :popup option of the link_to helper:
http://api.rubyonrails.com/classes/ActionView/Help...

Best regards
Jan P.
Dan Wright (Guest)
on 2006-01-16 16:54
(Received via mailing list)
Doh!!  Don't know how I missed that one.

Thanks,

Dan
This topic is locked and can not be replied to.