método indefinido `act_as_mappable 'tratando de usar geokit

I am trying to use geokit but I get the following message:

undefined method `acts_as_mappable'

I have tried the following solutions but nothing has worked so far: Rails 3.1.0, geokit, con error actions_as_mappable

I am using rails 3.0.1 and ruby 1.9.2

I have followed the instructions here https://github.com/jlecour/geokit-rails3 pero no esta funcionando

Este es mi modelo:

class Event < ActiveRecord::Base

acts_as_mappable :default_units => :kms,
         :default_formula => :flat


and I have this in my gemfile

gem 'geokit-rails3'

I also have the folder vendor, inside I have a geokit-rails3 folder with the files, one of them named acts_as_mappable. I have tried adding require 'geokit-rails3' in the top of my model but it says no file to load.

I tried both, installing it as a plugin:
rails plugin install git://github.com/jlecour/geokit-rails3.git and also by doing gem install (and it is shown when I list all the gems installed)

Cualquier ayuda es muy apreciada.

preguntado el 01 de febrero de 12 a las 22:02

1 Respuestas

The problem was solved by reinstalling rails with:

sudo apt-get install rails rails-doc rails-ruby1.8

Respondido 03 Feb 12, 01:02

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.