<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -61,12 +61,15 @@ module CouchRest
     # paramaters as described in http://wiki.apache.org/couchdb/HttpViewApi
     def view(name, params = {}, &amp;block)
       keys = params.delete(:keys)
-      url = CouchRest.paramify_url &quot;#{@uri}/_view/#{name}&quot;, params
+      name = name.split('/') # I think this will always be length == 2, but maybe not...
+      dname = name.shift
+      vname = name.join('/')
+      url = CouchRest.paramify_url &quot;#{@uri}/_design/#{dname}/_view/#{vname}&quot;, params
       if keys
         CouchRest.post(url, {:keys =&gt; keys})
       else
         if block_given?
-          @streamer.view(name, params, &amp;block)
+          @streamer.view(&quot;_design/#{dname}/_view/#{vname}&quot;, params, &amp;block)
         else
           CouchRest.get url
         end</diff>
      <filename>lib/couchrest/core/database.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2aeb90721e27fc6e7a42fcdc2bb4714c17733b8f</id>
    </parent>
  </parents>
  <author>
    <name>Chris Anderson</name>
    <email>jchris@grabb.it</email>
  </author>
  <url>http://github.com/jchris/couchrest/commit/7b03c7ba25856f0103bc4fe6a1c061cd6f4999cb</url>
  <id>7b03c7ba25856f0103bc4fe6a1c061cd6f4999cb</id>
  <committed-date>2009-03-09T13:12:28-07:00</committed-date>
  <authored-date>2009-03-09T13:12:28-07:00</authored-date>
  <message>fix for design doc url changes</message>
  <tree>623b8f10afe69da654a51280432480818fa16f5c</tree>
  <committer>
    <name>Chris Anderson</name>
    <email>jchris@grabb.it</email>
  </committer>
</commit>
