apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Mongoid compatibility #236

Closed yousraHazem closed 12 years ago

yousraHazem commented 12 years ago

In my application I'm using Mongoid 2.4.12 and Mongoid_spacial for geolocation with rails 3

Once I include the gem I get this error: uninitialized constant Post::Gmaps4rails

Any idea why?

apneadiving commented 12 years ago

Mmmm, I guess it's looking for Gmaps4rails but doesn't find it. So it ends up looking in the class where it has been called.

First time I read about this, do you have any specific configuration? Is Post a model of yours?

kristianmandrup commented 12 years ago

I'm have been using this gem with mongoid_geospatial gem for Mongoid 2.4.10 successfully. Now I'm in the process of switching to Mongoid 3. I think I might be able to help @yousraHazem.

apneadiving commented 12 years ago

No news = good news, will delete this issue soon