title: Saving Javascript Variable Into Ruby
body: <p>I am using the HTML 5 Geolocation code (<a href="http://www.w3schools.com/html/html5_geolocation.asp" rel="nofollow">http://www.w3schools.com/html/html5_geolocation.asp</a>) to get the users location. </p>
  
  <pre><code>...
  function showPosition(position)
    {
      x.innerHTML="Latitude: " + position.coords.latitude + 
      "&lt;br&gt;Longitude: " + position.coords.longitude; 
    }
  &lt;/script&gt;
  </code></pre>
  
  <p>I want to create a variable in ruby that holds the value of position.coords.latitude and position.coords.longitude, does anyone know the most effective way to capture this information and save it as a ruby variable? </p>