Couldn't find attribute or association #91
kashiftariq1997
started this conversation in
General
Replies: 1 comment 3 replies
-
|
Does your Coupon model not have an ID column? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have integrated this gem but i am facing some issue Kindly help me or give me any idea what the wrong is this.
I am getting this error:
ArgumentError (Couldn't find attribute or association 'id' with type '' on Coupon model
To fix this, either:
):
But on the same time i have coupon model having id attribute exists.
Further more i have set the root path in routes to 'users#index'
@excid3
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions