0

I am trying to build a complex google maps application with Rails as the framework. I have seen the YM4R gem and others that supposedly help with google maps development, but I honestly just want to go without them for now.

How can I get it so that rails passes a huge list of points to my google maps view, and the google maps javascript plots all of the points? I understand I probably need to use json somewhere (such as render :json => @points), but when I place that in my controller, I get an Illegal Action error from WEBbrick.

Any help would be greatly appreciated. Thanks!

readmymsg123
  • 643
  • 2
  • 8
  • 14

1 Answers1

0

You should have a look at my gem:

https://github.com/apneadiving/Google-Maps-for-Rails

And for an example of an customization see Google Maps, Ruby on Rails, Zoom level with one marker

Community
  • 1
  • 1
apneadiving
  • 114,565
  • 26
  • 219
  • 213