Ruby embedded code replacement for onclick in link?


#1

Is there a ruby embedded code replacement for something like this?


<%= image_tag item.image_url, :size => ‘200x150’ %>

Thanks,

Dan


#2

Hi, Dan,

have a look at the :popup option of the link_to helper:
http://api.rubyonrails.com/classes/ActionView/Helpers/UrlHelper.html#M000332

Best regards
Jan P.


#3

Doh!! Don’t know how I missed that one.

Thanks,

Dan