I am trying to use the cartographer plugin. I downloaded the trunk of the plugins folder and placed it into the vendor/plugins folder. I read the README file and it said to place the Cartographer.rb file in the verndor/plugins folder, and it also said to put "include Cartographer" in the environment.rb config file, which I did. I also got an Google API key for my page and set it up the way they said to in the keys.rb file inside the plugin folder. Now when I put <%= gmaps_header %> onto my layout page for the respected key it says "undefined local variable or method `gmaps_header' for #<#<Class:0x4874818>:0x48747f0>". I also noticed it said (in the header.rb file) it says the new way of calling the header is GMap::Header.header_for(request), so I tried that in the place of the gmaps_header, and it threw this error "uninitialized constant ActionView::Base::CompiledTemplates::GMap", and I also included the keys inside the "cartographer-config.yml" file which is in the plugins\cartographer\lib folder. Is there something that I am doing wrong to get this working?
on 2007-07-23 02:20
on 2008-08-24 06:04
Hi Scott, I had the same error and I found how to fix it. You need to install manually the gem. You can download it from https://rubyforge.org/frs/?group_id=1716&release_i... then run gem install ym4r-0.6.1 Cheers.