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
1 Post
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") #@map.control_init(:large_map => true,:map_type => false) #@map.center_zoom_init([41.023849,-80.682053], 10)

I am getting the following error

uninitialized constant UsersController::GMap

RAILS_ROOT: C:/gmapdemo Application Trace | Framework Trace | Full Trace

C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:492:in const_missing' app/controllers/users_controller.rb:8:inindex'

What should i do now.

Advanced thanks

1 Post
Login to add your message