-
Please help, I have two models, like Workout and Set, workout embeds_many sets:
When I try to create a workout Why class Set does not support methods like default_scoping? or order_by? |
Beta Was this translation helpful? Give feedback.
Answered by
maricavor
Mar 6, 2023
Replies: 1 comment
-
Ok, I will answer by myself. Looks like Set is a reserved word in Rails, by changing Set class to WorkoutSet the error is gone! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
maricavor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, I will answer by myself. Looks like Set is a reserved word in Rails, by changing Set class to WorkoutSet the error is gone!