Skip to content

Commit

Permalink
Improve documentation for view method
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Ascencio committed Aug 31, 2015
1 parent 32e4db1 commit 1904898
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ User.all #Dolly::Collection #<#User...>, <#User...>
user = User.find "a1b2d3e" #<#User...>
user.name
#Return a User object based on the custom view.
user = User.view 'view_name', {key: ["a", "b", "c"], reduce: true}
#Return a User object based on the custom view. `include_docs` is always true for this method.
response = User.view '_design/<design_document_name>/_view/<view_name>', {key: <key>, reduce: true}
user = User.new.from_json response


# Save doc
Expand Down

0 comments on commit 1904898

Please sign in to comment.