Closed dgutov closed 13 years ago
The response is divided in 3 parts:
You've got the html from the helper and you should retrieve the rest by including yield :head and yield :scripts.
It's part if the installation instructions.
Thanks, I didn't notice the the data part is also inside the "content_for :scripts" block.
Sorry for the false alarm.
I've generated the JSON string from the models, but when I pass it to
gmaps4rails
, it just returns a string with two divs.Relevant line from the model definition: