-
Notifications
You must be signed in to change notification settings - Fork 4
Cannot get minimal example running #21
Comments
I guess there is a race condition: the findQuery is executed too soon. Have you tried invoking Also, what does the response look like when calling the view? |
With these changes, I get no error. However, no output is shown on the site. In addition, Firebug only shows me the Get-Request for the "find" and a Post-Request for storing the new document. It seems that the findQuery is not executed. Aditionally, the database already contains some documents, so findQuery should find anything. This the the output of the view in my browser: {"total_rows":6,"offset":0,"rows":[
{"id":"72674863c864a2dde83ffa535a007e4c","key":"ToDo","value":{"_id":"72674863c864a2dde83ffa535a007e4c","_rev":"1-16b76f5d6c34e884551bfe600f26a316","type":"ToDo","title":"New ToDo","content":"Some Details","creator":"Me","created_at":"2013-01-05","done":"false","ember_type":"(subclass of DS.Model)"}},
{"id":"72674863c864a2dde83ffa535a008c6c","key":"ToDo","value":{"_id":"72674863c864a2dde83ffa535a008c6c","_rev":"1-16b76f5d6c34e884551bfe600f26a316","type":"ToDo","title":"New ToDo","content":"Some Details","creator":"Me","created_at":"2013-01-05","done":"false","ember_type":"(subclass of DS.Model)"}},
{"id":"72674863c864a2dde83ffa535a009af9","key":"ToDo","value":{"_id":"72674863c864a2dde83ffa535a009af9","_rev":"1-16b76f5d6c34e884551bfe600f26a316","type":"ToDo","title":"New ToDo","content":"Some Details","creator":"Me","created_at":"2013-01-05","done":"false","ember_type":"(subclass of DS.Model)"}},
{"id":"72674863c864a2dde83ffa535a009f95","key":"ToDo","value":{"_id":"72674863c864a2dde83ffa535a009f95","_rev":"1-16b76f5d6c34e884551bfe600f26a316","type":"ToDo","title":"New ToDo","content":"Some Details","creator":"Me","created_at":"2013-01-05","done":"false","ember_type":"(subclass of DS.Model)"}},
{"id":"72674863c864a2dde83ffa535a00a97b","key":"ToDo","value":{"_id":"72674863c864a2dde83ffa535a00a97b","_rev":"1-16b76f5d6c34e884551bfe600f26a316","type":"ToDo","title":"New ToDo","content":"Some Details","creator":"Me","created_at":"2013-01-05","done":"false","ember_type":"(subclass of DS.Model)"}},
{"id":"72674863c864a2dde83ffa535a00ac0a","key":"ToDo","value":{"_id":"72674863c864a2dde83ffa535a00ac0a","_rev":"1-16b76f5d6c34e884551bfe600f26a316","type":"ToDo","title":"New ToDo","content":"Some Details","creator":"Me","created_at":"2013-01-05","done":"false","ember_type":"(subclass of DS.Model)"}}
]} |
Ok, so the thing is that the response of a That said, the next thing that I will work on is documentation, see #13. |
Another note: your |
You made my day! |
Nice, glad it works now! I hope I can improve the documentation asap. Thanks for testing 😉 |
I tried to get a minimal example running (besides, how to add attachments):
https://gist.github.com/4462391
However, Firebug reports the following error:
This is line 22 in couchdb_adapter.js.
The text was updated successfully, but these errors were encountered: