# Ayuda con link\_to\_remote

**URL:** <https://www.ruby-forum.com/t/ayuda-con-link-to-remote/132484>\
**Category:** ES\
**Created:** [March 20, 2008, 5:05pm UTC](https://www.ruby-forum.com/t/ayuda-con-link-to-remote/132484 "2008-03-20T17:05:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![melj\_mat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b3f665/32.png) [@melj\_mat](https://www.ruby-forum.com/u/melj_mat)\
**Post date:** [March 20, 2008, 5:05pm UTC](https://www.ruby-forum.com/t/ayuda-con-link-to-remote/132484/1 "2008-03-20T17:05:45Z")

</div>

Buenas muchachos, tengo una gran incognita, la funcion link\_to\_remote me  
genera el codigo necesario para trabajar con ajax, si hago algo como:

link\_to\_remote “hello”,  
:url =\> { :action =\> “undo”, :n =\> word\_counter },  
:complete =\> “undoRequestCompleted(request)”  
me genera:

hello

Mi pregunta es, no hay un parametro para link\_to\_remote que me permita  
indicar que valores voy a pasar en “parameters:” en la llamada a al  
servdor remoto con ajax???  
sera algo como  
link\_to\_remote “hello”,  
:url =\> { :action =\> “undo”, :n =\> word\_counter },  
:complete =\> “undoRequestCompleted(request)”,  
:parameters =\> “busqueda=3”

para que me genere:  
hello

espero alguien me pueda ayudar…

---

<div class="post-metadata">

**Author:** ![melj\_mat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b3f665/32.png) [@melj\_mat](https://www.ruby-forum.com/u/melj_mat)\
**Post date:** [March 20, 2008, 6:17pm UTC](https://www.ruby-forum.com/t/ayuda-con-link-to-remote/132484/2 "2008-03-20T18:17:32Z")

</div>

On Mar 20, 2008, at 17:05 , Melvin M. wrote:

> Mi pregunta es, no hay un parametro para link\_to\_remote que me permita  
> indicar que valores voy a pasar en “parameters:” en la llamada a al  
> servdor remoto con ajax???

Yep, :with.

– fxn

---

<div class="post-metadata">

**Author:** ![melj\_mat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b3f665/32.png) [@melj\_mat](https://www.ruby-forum.com/u/melj_mat)\
**Post date:** [March 20, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/ayuda-con-link-to-remote/132484/3 "2008-03-20T18:52:12Z")

</div>

On 20/03/2008, Melvin M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Buenas muchachos, tengo una gran incognita, la funcion link\_to\_remote me  
> genera el codigo necesario para trabajar con ajax, si hago algo como:

Melvin, antes de consultar ¿has probado a echar un vistazo a la  
documentación de linkt\_to\_remote?

–  
Manuel, que  
piensa que eres una excelente persona y medra en torno a  
[http://simplelogica.net](http://simplelogica.net) y/o [Page not found](http://simplelogica.net/logicola/)  
Recuerda comer mucha fruta y verdura.

---

<div class="post-metadata">

**Author:** ![melj\_mat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b3f665/32.png) [@melj\_mat](https://www.ruby-forum.com/u/melj_mat)\
**Post date:** [March 21, 2008, 2:37am UTC](https://www.ruby-forum.com/t/ayuda-con-link-to-remote/132484/4 "2008-03-21T02:37:12Z")

</div>

gracias muchachos `por su ayuda… soy nuevo en rails y como la  
documentacion esta en ingles se me hace dificil aprender y ver las cosas  
rapidos… muchisimas gracias
