Closed jmangoubi closed 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.
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
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.