In this tutorial we'll talk about how to use Google Maps API with Rails. We'll see some examples of using Static API and Javascript API, how to place a marker and how to update the marker position when we change a form input value. And finally how to update the input value by dragging the marker. All of this without using any gems.
Level: beginner
Pre requisites: basic knowledge of Rails and Javascript
Please visit the link to view tutorial on Medium:
https://medium.com/@pjbelo/using-google-maps-api-v3-with-rails-5-2-b066a4b2cf14
You can check the commit history for the different code versions.
To use this App you must setup your Google Maps API Key using rails credentials with the name: google_maps_api_key
Please feel free to contact. I'll be glad to help if I can :-)
Cheers,
Paulo