Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to using mongoid for controller clas?? #529

Open
farihulrouf opened this issue Sep 17, 2016 · 2 comments
Open

How to using mongoid for controller clas?? #529

farihulrouf opened this issue Sep 17, 2016 · 2 comments

Comments

@farihulrouf
Copy link

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
Copy link

nynhex commented Sep 17, 2016

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

@farihulrouf
Copy link
Author

I have Change to latitude but still error .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants