All Lessons / Google Maps and Google Places Autocomplete API with Rails, Turbolinks, and Stimulus.js

Google Maps and Google Places Autocomplete API with Rails, Turbolinks, and Stimulus.js

#339 ยท April 6, 2020

Your Teacher | Chris Oliver

Hi, I'm Chris. I'm the creator of GoRails, Hatchbox.io and Jumpstart. I spend my time creating tutorials and tools to help Ruby on Rails developers build apps better and faster.

About This Episode

Learn how to implement Google Maps and the Google Places Autocomplete API in Rails compatible with Turbolinks using StimulusJS

Notes

Google Maps has notoriously not played well with Rails and Turbolinks. Using Stimulus.js, we can make it work seamlessly using custom events in Javascript to tie the two together allowing us to add maps and location search autocomplete from Google Maps extremely easily.

Resources

Discussion

Loading...
logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.