-
Notifications
You must be signed in to change notification settings - Fork 245
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
UndefinedTable: ERROR: missing FROM-clause entry for table "locations" #92
Comments
the workaround should be Merchant.joins(:location).within(50,:origin => [lat,lng]) Looking for any other solutions for this |
any update for this? I think the through only giving the methods and forget to adding the join if we look at the query this one that using join
this one is not using join
|
buncis
referenced
this issue
Sep 18, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am following the guide to build a merchant model using location model
https://github.com/geokit/geokit-rails#using-through
Below is my code
I am trying to run
Merchant.within(50,:origin => [lat,lng])
It throw
Is there any wrong setup between model?
The text was updated successfully, but these errors were encountered: