Welcome to Working With Rails

 

Discussion Forums

Discuss all things Ruby on Rails with perhaps the web's most vibrant group of Ruby on Rails enthusiasts.
adding google map to rails application
3 Posts
adding google map to rails application

Hello there ,

I have written the following code in my rails application to add google map to my rails application.

#@map = GMap.new("map_div1")

I am getting the following error

uninitialized constant UsersController::GMap

What should i do now.

Advanced thanks

Hi, First you must install the plugin for google maps YM4R.

If you are using git, you can get the plugin as follows: ruby script/plugin install git://github.com/bitbckt/ym4r-gm.git

And here is the documentation of the plugin http://ym4r.rubyforge.org/ym4r_gm-doc/

in this doc, the teach you how to install and show an example of controller/view.

Help this doc can help you!

3 Posts
Login to add your message