hook up rails serializer and json api.