refactor Rails controllers with Serializers