ruby on rails - How to do many to many in active model serializer? -
i'm looking solution utilize many many association in active model serializer.
let's have user many user types through many many table, how can homecoming user types specific user?
do need create serializer many many model?
the reply pretty stupid. had set serializer "has_one user_type
", simple alter "has_many user_types
" worked.
ruby-on-rails active-model-serializers
No comments:
Post a Comment