# Link\_to\_remote and link\_to

**URL:** <https://www.ruby-forum.com/t/link-to-remote-and-link-to/194525>\
**Category:** Rails\
**Created:** [September 6, 2010, 5:11pm UTC](https://www.ruby-forum.com/t/link-to-remote-and-link-to/194525 "2010-09-06T17:11:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luis21\_futur](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/87869e/32.png) [@luis21\_futur](https://www.ruby-forum.com/u/luis21_futur)\
**Post date:** [September 6, 2010, 5:11pm UTC](https://www.ruby-forum.com/t/link-to-remote-and-link-to/194525/1 "2010-09-06T17:11:20Z")

</div>

Hi,

Estoy pasando una aplicaciÃ³n que trabaja con Google maps y Rails 2. Con  
Google maps recojo las coordenadas X y Y en dos campos de texto y los  
paso  
mediante el mÃ©todo :with al controlador para hacer algunas operaciones.

El cÃ³digo es:

I have an application with RoR and Google maps and i catch X and Y coord  
to send to a controller. I use :with parameter:

```
<%= link_to_remote "Obtener datos catastrales", :update =>

```

:catastro,:url =\>  
{:controller =\> “instalacions”, :action =\> “catastro\_ajax” }, :before =\>  
“Element.show(‘spinner’)”, :complete =\> “Element.hide(‘spinner’)”, :with  
=\>  
“‘coordx=’+$(‘instalacion\_longitud’).value+’&coordy=’+$(‘instalacion\_latitud’).value”  
%\>

How can i migrate this instruction to Rails 3? I only need know how to  
capture the input text values to send to the controller.

Thanks!!

Un saludo y gracias.
