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.