Question: what are serializers in rails?
Answer: ActiveModel::Serializer provides a way of creating custom JSON by representing each resource as a class that inherits from ActiveModel::Serializer . With that in mind, it gives us a better way of testing compared to other methods.