apneadiving / Google-Maps-for-Rails

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

How to using mongoid for controller clas?? #529

Open farihulrouf opened 7 years ago

farihulrouf commented 7 years ago

Here eroor undefined method `lattitude' for #Lapor:0x007f2fac03bb18

@users = User.all
@hash = Gmaps4rails.build_markers(@users) do |user, marker|
  marker.lat user.latitude
  marker.lng user.longitude
end
nynhex commented 7 years ago

You're attribute is raising as "lattitude". It's spelled incorrectly.

farihulrouf commented 7 years ago

I have Change to latitude but still error .