Digital Notepad

Internet, Mobility and Serious Geekery

GeoKit on Rails – excellent plugin with a twist

February6

Just a quicky, with the release of 1.2.1 of the geokit rails plugin there seems to be a regression, concerning the mappable.rb / acts_as_mappable mixin.

Putting this up front in my model helped a lot to avoid NameError: undefined local variable or method `acts_as_mappable’ :

require ‘vendor/plugins/geokit-rails/init.rb’

Maybe it’s just me, but at least now it works. I’ll ask Andre Lewis about this.

Update: Andre just twittered me that adding config.gem “andre-geokit”, :lib=>’geokit’, :source => ‘http://gems.github.com’ to /config/environment.rb does the trick as well. On to remove cruft from models!

posted under Tech
One Comment to

“GeoKit on Rails – excellent plugin with a twist”

  1. On February 8th, 2009 at 23:43 Tom Says:

    I had tonnes of problems with this. First I got it to work on my development environment (Mac), but still had problems on my Ubuntu Linux production server.

    Finally, I found that having these includes:

    require ‘geokit’
    require ‘vendor/plugins/geokit-rails/init.rb’

    … in that particular order, got it to work.

    Tom.

Email will not be published

Website example

Your Comment: