@errors = @workgroup.errors.any?

render :json => { :status => @saved ? :ok : :not_acceptable,  :errors => @errors? @errors.full_messages.join(',') : '' }

This way, you are sure errors are set to empty if @saved