# Link\_to\_remote with embedded image\_tag

**URL:** <https://www.ruby-forum.com/t/link-to-remote-with-embedded-image-tag/137592>\
**Category:** Rails\
**Created:** [May 14, 2008, 1:55pm UTC](https://www.ruby-forum.com/t/link-to-remote-with-embedded-image-tag/137592 "2008-05-14T13:55:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dino\_d](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b5ac83/32.png) [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Post date:** [May 14, 2008, 1:55pm UTC](https://www.ruby-forum.com/t/link-to-remote-with-embedded-image-tag/137592/1 "2008-05-14T13:55:00Z")

</div>

Hi-

I want to generate a link with an image embedded between the and \</  
a\> so when the user clicks on the image the ajax call fires. I can’t  
find any documentation on how to do this with link\_to\_remote. Is this  
possible? I’d like to generate something like:

![]()

Thanks,  
Dino

---

<div class="post-metadata">

**Author:** ![dino\_d](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b5ac83/32.png) [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Post date:** [May 14, 2008, 2:38pm UTC](https://www.ruby-forum.com/t/link-to-remote-with-embedded-image-tag/137592/2 "2008-05-14T14:38:02Z")

</div>

\<%= link\_to\_remote(image\_tag(“image.jpg”), :funky\_stuff =\> “goes here”)  
%\>
