Skip to content

Instantly share code, notes, and snippets.

@kiko
Created February 12, 2009 14:39
Show Gist options
  • Save kiko/62646 to your computer and use it in GitHub Desktop.
Save kiko/62646 to your computer and use it in GitHub Desktop.
--- a/app-template/_attachments/index.html
+++ b/app-template/_attachments/index.html
@@ -16,7 +16,7 @@
var dbname = document.location.href.split('/')[3];
var design = unescape(document.location.href).split('/')[5];
var DB = $.couch.db(dbname);
- DB.view(design+"/example",{success: function(json) {
+ DB.view(design+"/example",{group: true, success: function(json) {
$("#view").html(json.rows.map(function(row) {
return '<li>'+row.key+'</li>';
}).join(''));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment