Discussion Forums
- Topic List
- Most Recent Posts
- Sign In for more options
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!
