# Stupid question from a newbie

**URL:** <https://www.ruby-forum.com/t/stupid-question-from-a-newbie/183905>\
**Category:** Rails\
**Created:** [February 22, 2010, 3:27pm UTC](https://www.ruby-forum.com/t/stupid-question-from-a-newbie/183905 "2010-02-22T15:27:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![erwillie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c0e974/32.png) [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Post date:** [February 22, 2010, 3:27pm UTC](https://www.ruby-forum.com/t/stupid-question-from-a-newbie/183905/1 "2010-02-22T15:27:25Z")

</div>

Hi everyone:  
I,m using the following code and I have some questions

\<%= link\_to\_remote( "Show Body", :update =\> "comment\_#{comment.id.to\_s}", :url =\> { :action =\> :show\_body, :id =\> comment }) %\>

what exactly do :update,:url,:id, I mean what is the action they done??

Other question

I want to refresh an image, but the image is not a class of the code,  
because Iuse the image tag, I dont know where I have to start for do  
that, anyone can give me a tip

Thanks

---

<div class="post-metadata">

**Author:** ![erwillie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c0e974/32.png) [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Post date:** [February 22, 2010, 3:51pm UTC](https://www.ruby-forum.com/t/stupid-question-from-a-newbie/183905/2 "2010-02-22T15:51:08Z")

</div>

Guille S. wrote:

> \<%= link\_to\_remote( "Show Body", :update =\> "comment\_#{comment.id.to\_s}", :url =\> { :action =\> :show\_body, :id =\> comment }) %\>

The official documentation for link\_to\_remote explains this probably  
better than I could myself:  
[http://www.railsbrain.com/api/rails-2.3.2/doc/index.html?a=M002467&name=link\_to\_remote](http://www.railsbrain.com/api/rails-2.3.2/doc/index.html?a=M002467&name=link_to_remote)

Basically though, :update is the id of the DOM element to be updated  
(

…content…
. URL in this case is the  
“show\_body” action of the current controller with the id of the current  
comment.
