# Cartographer help

**URL:** <https://www.ruby-forum.com/t/cartographer-help/110097>\
**Category:** Rails\
**Created:** [July 23, 2007, 2:20am UTC](https://www.ruby-forum.com/t/cartographer-help/110097 "2007-07-23T02:20:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dark-omen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c68b51/32.png) [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Post date:** [July 23, 2007, 2:20am UTC](https://www.ruby-forum.com/t/cartographer-help/110097/1 "2007-07-23T02:20:34Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![dark-omen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c68b51/32.png) [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Post date:** [August 24, 2008, 6:04am UTC](https://www.ruby-forum.com/t/cartographer-help/110097/2 "2008-08-24T06:04:22Z")

</div>

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\_id=18937](https://rubyforge.org/frs/?group_id=1716&release_id=18937)  
then run gem install ym4r-0.6.1

Cheers.
