apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

places without map #371

Closed danil-z closed 10 years ago

danil-z commented 11 years ago

Hello. I have a view where i don't show a map but have autocomplete fields use places autocomplete function. How to force load necessary JS libraries?

In other words -

How to load js libraries without having

= gmaps({ "map_options" => { "libraries" => ["places"] } })

in my template..?

danil-z commented 11 years ago

btw i want load it on every page because i'm using turbolinks and many views don't works as expected without reloading them...

apneadiving commented 10 years ago

include them manually, it's the best option