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

Question: to_gmaps4rails method #134

Closed jmangoubi closed 12 years ago

jmangoubi commented 12 years ago

I am pulling data from a source other than a model. Is there a method to assist building the JSON when the data comes from another source? Currently I only understand how to add the to_gmaps4rails method to a model.

apneadiving commented 12 years ago

There is no builtin method to assist you but you simply have to create json like the one shown here: https://github.com/apneadiving/Google-Maps-for-Rails/wiki/Markers