I'm using the Google Maps Javascript API so that I can have someone put a marker on a map and then get the latitude and longitude from that to submit as part of a form. I know how to get the data from the Maps api just fine, but I can't figure out how to submit the javascript variables that I have to the rails form?
An event is called ever time the maps marker is moved, so at that point is there a way to send the lat and long variables back to hidden form fields in rails or something?