apneadiving/Google-Maps-for-Rails — Issue #139: undefined method `to_gmaps4rails'
Author: HungYuHei
Created: 2012-01-10 09:29:45+00:00
State: open

I've done everything that the README said

but I still got "undefined method `to_gmaps4rails' for #" error

btw, my environment is : rails3.1, mongoid2.3.3, gmaps4rails1.4.2

and here is my Model snippet:

class User
include Mongoid::Document

acts_as_gmappable
field :name
end

my controller:

...
@json = @user.to_gmaps4rails
...

Did I miss something ?