# Between to\_image and link\_to with image\_tag

**URL:** <https://www.ruby-forum.com/t/between-to-image-and-link-to-with-image-tag/90706>\
**Category:** Rails\
**Created:** [March 31, 2007, 8:10am UTC](https://www.ruby-forum.com/t/between-to-image-and-link-to-with-image-tag/90706 "2007-03-31T08:10:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![foxiness](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e9bcb4/32.png) [@foxiness](https://www.ruby-forum.com/u/foxiness)\
**Post date:** [March 31, 2007, 8:10am UTC](https://www.ruby-forum.com/t/between-to-image-and-link-to-with-image-tag/90706/1 "2007-03-31T08:10:44Z")

</div>

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?
