Permalink
Browse files

Use _doc suffix in examples for delete and save

  • Loading branch information...
1 parent 7f5f1ae commit eb6598131c4a0b9691ba668ca344c5367d7709a1 @mig-hub mig-hub committed Oct 20, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 examples/word_count/word_count.rb
  2. +2 −2 examples/word_count/word_count_views.rb
@@ -28,7 +28,7 @@
while line = file.gets
lines << line
if lines.length > 10
- db.save({
+ db.save_doc({
:title => title,
:chunk => chunk,
:text => lines.join('')
@@ -16,9 +16,9 @@
}'
}
-db.delete db.get("_design/word_count") rescue nil
+db.delete_doc db.get("_design/word_count") rescue nil
-db.save({
+db.save_doc({
"_id" => "_design/word_count",
:views => {
:words => word_count

0 comments on commit eb65981

Please sign in to comment.