Forum: Ruby on Rails between to_image and link_to with image_tag

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.
Df98eba63ae1de63724aee281308836a?d=identicon&s=25 foxiness (Guest)
on 2007-03-31 08:10
(Received via mailing list)
if i use one of this two line:

<%=  link_to_image  product.image_url, :action => :add_to_cart, :id =>
product %>

<%=  link_to image_tag  product.image_url, :action
=> :add_to_cart, :id => product %>

i think it will give me the same result ,but is there a different on
use of this two and if yes what?
This topic is locked and can not be replied to.