Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6617693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:44:06+00:00 2026-05-25T20:44:06+00:00

I am getting the undefined local variable or method `acts_as_mappable’ error when using geokit,

  • 0

I am getting the

undefined local variable or method `acts_as_mappable'

error when using geokit, and after tons of Goggling and attempts, I cannot seem to be able correct the problem.

Basically, I have the following gems installed:

geokit (1.6.0, 1.5.0)
geokit-rails31 (0.1.3)

and have the following in my model

class House < ActiveRecord::Base
  acts_as_mappable
end

and Gemfile:

gem 'geokit', '>= 1.5.0'
gem 'geokit-rails31'

I get the error with or without doing the following in my local app.

rails plugin install git://github.com/jlecour/geokit-rails3.git
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:44:07+00:00Added an answer on May 25, 2026 at 8:44 pm

    Okay – Here is the solution for anyone that needs help on how I got it to work…

    Make sure your project Gemfile does not contain any geokit info of any kind.

    install geokit

    > gem install geokit
    
    > gem list geo
    *** LOCAL GEMS ***
    geokit (1.6.0, 1.5.0)
    

    uninstall geokit-rails3 and geokit-rails31

    > gem uninstall geokit-rails31 geokit-rails3
    

    in your project, at the root level:

    > rails plugin install git://github.com/jlecour/geokit-rails3.git
    

    edit the spec

    > vi vendor/plugins/geokit-rails3/geokit-rails3.gemspec
    

    change rails dependency line to be

    s.add_runtime_dependency 'rails', '>= 3.1.0'
    

    now, edit the Gemfile to include the gem

    gem 'geokit-rails3', :path => 'vendor/plugins/geokit-rails3'
    

    Note, the Gemfile only contains an entry for the geokit-rails3, and no entries for normal geokit gem. i.e. there is not a “gem ‘geokit’, ‘>= 1.5.0′” entry

    then in your application root, do a

    bundle install
    

    It should be setup, and you can now follow a typical tutorial – as described in the git instructions

    https://github.com/jlecour/geokit-rails3
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting this error : undefined local variable or method sessions_path' for #<#:0x2db44c8> when
I am getting the following error in Rails 3.1: undefined local variable or method
I have a problem where a method is getting an undefined variable error, even
I am getting JQUERY undefined error. Do you have any idea (code below). <%@
I'm getting an Undefined Instruction error while running an embedded system, no coprocessor, no
Why am I getting an undefined label error in following code? (I am leaving
I keep getting an Notice: Undefined index: did error with this query, and I'm
Trying to compile a iPhone/iPad application with SDK3.2 and am getting this error: Undefined
I'm getting error undefined reference to `pthread_attr_init', even though that should be in pthread.h.
I'm getting a syntax error (undefined line 1 test.js) in Firefox 3 when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.