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") @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
