# Link\_to\_remote with an image

**URL:** <https://www.ruby-forum.com/t/link-to-remote-with-an-image/165825>\
**Category:** Rails\
**Created:** [April 17, 2009, 9:53pm UTC](https://www.ruby-forum.com/t/link-to-remote-with-an-image/165825 "2009-04-17T21:53:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [April 17, 2009, 9:53pm UTC](https://www.ruby-forum.com/t/link-to-remote-with-an-image/165825/1 "2009-04-17T21:53:16Z")

</div>

I have this:  
\<%= link\_to\_remote ‘Remove’, :url =\> {:controller =\> ‘steps’, :action  
=\> ‘removestep’, :id =\> @mop}, :with =\> “‘step\_id=’ + #  
{step.id}”, :src =\> ‘/images/Trash\_can.gif’ %\>

I am not getting an image. Is this the correct way to make a  
link\_to\_remote with a gif?

---

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [April 17, 2009, 10:20pm UTC](https://www.ruby-forum.com/t/link-to-remote-with-an-image/165825/2 "2009-04-17T22:20:54Z")

</div>

> \<%= link\_to\_remote ‘Remove’, :url =\> {:controller =\> ‘steps’, :action  
> =\> ‘removestep’, :id =\> @mop}, :with =\> “‘step\_id=’ + #  
> {step.id}”, :src =\> ‘/images/Trash\_can.gif’ %\>
> 
> I am not getting an image. Is this the correct way to make a  
> link\_to\_remote with a gif?

Newp.

link\_to\_remote image\_tag(’/images/Trash\_can.gif’),  
:blah =\> ‘blah blah’

---

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [April 17, 2009, 10:39pm UTC](https://www.ruby-forum.com/t/link-to-remote-with-an-image/165825/3 "2009-04-17T22:39:05Z")

</div>

ok, thanks.
