Google-Maps-for-Rails icon indicating copy to clipboard operation
Google-Maps-for-Rails copied to clipboard

How to using mongoid for controller clas??

Open farihulrouf opened this issue 8 years ago • 2 comments

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

farihulrouf avatar Sep 17 '16 14:09 farihulrouf

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

nynhex avatar Sep 17 '16 14:09 nynhex

I have Change to latitude but still error .

farihulrouf avatar Sep 17 '16 14:09 farihulrouf