Google-Maps-for-Rails
Google-Maps-for-Rails copied to clipboard
How to using mongoid for controller clas??
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
You're attribute is raising as "lattitude". It's spelled incorrectly.
I have Change to latitude but still error .