0
새 버전에서이 관계를 사용하려면 어떻게해야합니까?버전에서의 루비 활성 모델 시리얼 라이저 연결> 0.8.0
gem "active_model_serializers", "~> 0.8.0"
와
class UserSerializer < ActiveModel::Serializer
embed :ids
attributes :id, :email, :created_at, :updated_at, :auth_token
has_many :products
end
작동하지만, 내가 theay 이전, 사람을 나누기 새 버전에 노력하고 있습니다 생각
gem 'active_model_serializers', git: "https://github.com/rails-api/active_model_serializers.git"