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?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---