hit a snag with rest-client and query params

This commit is contained in:
Chris Anderson 2008-03-19 15:21:27 -07:00
parent 420168be70
commit e7ea12f2ae
2 changed files with 20 additions and 0 deletions

View file

@ -32,6 +32,11 @@ class CouchRest
end
end
def delete doc
slug = CGI.escape(doc['_id'])
CouchRest.delete "#{@root}/#{slug}?rev=#{doc['_rev']}"
end
def delete!
CouchRest.delete @root
end