# Link\_to\_remote

**URL:** <https://www.ruby-forum.com/t/link-to-remote/147599>\
**Category:** Rails\
**Created:** [September 3, 2008, 3:07pm UTC](https://www.ruby-forum.com/t/link-to-remote/147599 "2008-09-03T15:07:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pipex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f6c823/32.png) [@pipex](https://www.ruby-forum.com/u/pipex)\
**Post date:** [September 3, 2008, 3:07pm UTC](https://www.ruby-forum.com/t/link-to-remote/147599/1 "2008-09-03T15:07:31Z")

</div>

Hi,

I need to know if there is a way to use a link to remote but instead of  
using a string link use an image?

thank for any response!

–  
Felipe V. Contesse  
IngenierÃ­a Civil Industrial UC

---

<div class="post-metadata">

**Author:** ![pipex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f6c823/32.png) [@pipex](https://www.ruby-forum.com/u/pipex)\
**Post date:** [September 3, 2008, 3:59pm UTC](https://www.ruby-forum.com/t/link-to-remote/147599/2 "2008-09-03T15:59:11Z")

</div>

\<%= link\_to\_remote(image\_tag("/images/something.jpg"), :url =\>  
something\_path) %\>  
will do…

---

<div class="post-metadata">

**Author:** ![pipex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f6c823/32.png) [@pipex](https://www.ruby-forum.com/u/pipex)\
**Post date:** [September 3, 2008, 4:51pm UTC](https://www.ruby-forum.com/t/link-to-remote/147599/3 "2008-09-03T16:51:57Z")

</div>

Hello!!!

2008/9/3 Felipe V. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Hi,
> 
> I need to know if there is a way to use a link to remote but instead of  
> using a string link use an image?

Instead of text, put something like this on your remote:

\<%= link\_to\_remote image\_tag(‘hello.gif’),  
:url=\>{  
:controller=\>“animals”,  
:action=\>“destroy”,  
:id=\>animal.id},  
:update=\>“animal#{animal.id}”,  
:loading=\>“status(‘animal#{animal.id}’)”  
%\>

chau wn! 😛

–  
Rodrigo F.  
Concepción, Chile

---

<div class="post-metadata">

**Author:** ![pipex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f6c823/32.png) [@pipex](https://www.ruby-forum.com/u/pipex)\
**Post date:** [September 4, 2008, 4:46am UTC](https://www.ruby-forum.com/t/link-to-remote/147599/4 "2008-09-04T04:46:14Z")

</div>

thanks!!

On Wed, Sep 3, 2008 at 10:51 AM, Rodrigo F. \<  
removed\_email\_address@domain.invalid\> wrote:

> –  
> Rodrigo F.  
> ConcepciÃ³n, Chile
> 
> >

–  
Felipe V. Contesse  
IngenierÃ­a Civil Industrial UC
