Text after "div class =" itemprop = "text">
I have a bigger size JSON response in a controller method:
json render: {User: {id: @ current_user.id, name: @ current_user.full_name, title: @ current_user.title, phone_work: @ current_user.phone_work, phone_mobile: @ current_user.phone_mobile, address: @ current_user.addresses}, appointments: @ Current_user .appointments} I tried to do AppointmentSerializer.new (@ current_user.appointments)
and I found this error: Undefined method 'read_attribute_for_serialization'
. The error is coming from the first line, where json has been rendered. ( render json:
) I can specify different serializers for the user's address, and for the placements?
No comments:
Post a Comment