In Ruby on rails, I need to make a ajax call to a method and pass two values, latitude and longitude. How do I define such a route in route.rb?
Once the route is defined how do I make this Ajax call from the JavaScript method and update a Div?
Thanks
Shaunak
You don’t need to specify that there are two variables for a restful route. You an just include it in the route.
For example:
That will create a anchor link. Pass any other parameter as key => value pairs.