-
Notifications
You must be signed in to change notification settings - Fork 58
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
Rails association Errors #82
Comments
@omerpucit thanks for the report, but I don't see how this is related to In fact, it's pretty clear that the error is somewhere within the way you set up things:
If it helps, I'm happy to review the serializer for the I'll be closing this, but feel free to follow-up if you find anything I did miss. |
The issue was with the nested objects ( and with the rails method -> errors_object.generate_message ). Anyway, I have already fixed it for my own case.
|
@omerpucit we do not support, nor plan to support nested resources/errors. And I generally do not recommend this pattern. Glad you worked it out 🙏 |
Expected Behavior
Should working with #<ActiveModel::Errors [#ActiveModel::NestedError
Actual Behavior
Giving error related to relational data errors.
Like
This one giving error
NoMethodError - undefined method `book.author_name' for #<Book
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: