lets say I have a method as follows def index applications = Application.all render json: applications, each_serializer: ApplicationIndexSerializer, status: 200