title: Can't any CouchDB _list function to work
body: <p>Struggling to get any list function to work. I've been fine with _show and _view functions, but lists don't seem to be working, or I have misunderstood what to do! (I'll admit to needing an idiot's guide!)</p>
  
  <p>My design document looks like:</p>
  
  <pre><code>{
     "_id": "_design/lists",
     "_rev": "3-d22225b4a28a6ca11484723c3a37201b",
     "language": "javascript",
     "views": {
         "variants": {
             "map": "function(doc) { emit(doc.var, doc.number_of_results); }"
         }
     },
     "lists": {
         "results": "function(head, req) { var row; while(row = getRow()) {send(row.value);}}"
     }
  }
  </code></pre>
  
  <p>When I enter http://localhost:5984/mydb/_design/lists/_view/variants I get a list of variant names, like:</p>
  
  <pre><code>...{"id":"f050ad9b9f725443cb8c4071f40583b","key":"rs1013940","value":19008},
  {"id":"f050ad9b9f725443cb8c4071f40daff","key":"rs1013940","value":19008},
  {"id":"f050ad9b9f725443cb8c4071f40b985","key":"rs1021188","value":10197}...
  </code></pre>
  
  <p>but when I enter http://localhost:5984/mydb/_design/lists/_list/results I get:</p>
  
  <pre><code>{"error":"list_error","reason":"Invalid path."}
  </code></pre>
  
  <p>Does anyone know what I'm doing wrong? I've tried everything I can think of and swapping the function for one from any of the online tutorials.</p>
  
  <p>I'm using CouchDB version 1.0.1 on Ubuntu 12.04</p>
  
  <p>Many thanks, hope someone can help!</p>