polished documentation

This commit is contained in:
Chris Anderson 2008-09-29 23:39:57 -07:00
parent 26c4db7fc6
commit b3b58ffa83
6 changed files with 20 additions and 11 deletions

View file

@ -5,6 +5,7 @@ module CouchRest
@db = db
end
# Stream a view, yielding one row at a time. Shells out to <tt>curl</tt> to keep RAM usage low when you have millions of rows.
def view name, params = nil
urlst = /^_/.match(name) ? "#{@db.root}/#{name}" : "#{@db.root}/_view/#{name}"
url = CouchRest.paramify_url urlst, params