Problems with RESTAdapter using nested dynamic segments

I’ve been struggling for a long time trying to get an application to work properly, and was hoping that someone out there in Ember Land could help me.

Basically it’s a simple application querying a remote service whose REST interface is defined as follows:

Receive a list of folders (GET /folders)

$ curl "http://192.168.50.11:5000/folders"

Returned JSON:
{
  "folders": [{
      "count": 0,
      "id": "000000004643FC50C0F14E8E855510C59A14928201000000030000009B049B9703BF46CC9FA0EE078DE6666200000000",
      "name": "Suggested Contacts"
  },
  ...
  {
      "count": 8,
      "id": "000000004643FC50C0F14E8E855510C59A14928201000000030000001C90561ACCFB43B29087BD2F2ABAD1BF00000000",
      "name": "Inbox"
  }]
}

Receive a list of items of the Inbox (GET /folders/folder_id)

$ curl "http://192.168.50.11:5000/folders/000000004643FC50C0F14E8E855510C59A14928201000000030000001C90561ACCFB43B29087BD2F2ABAD1BF00000000"

Returned JSON:
{
  "items": [{
    "id": "000000004643FC50C0F14E8E855510C59A1492820100000005000000C93D7B2CD9C04E30B6FB3748DAE0C17000000000",
    "subject": "another mail"
  },
  ...
  {
      "id": "000000004643FC50C0F14E8E855510C59A1492820100000005000000E5F5694DEFCA4D10B56BB47F169BE96300000000",
      "subject": "high PRIO!"
  }]
}

List the properties of a mail message in the Inbox (GET /folders/folder_id/items/item_id)

$ curl "http://192.168.50.11:5000/folders/000000004643FC50C0F14E8E855510C59A14928201000000030000001C90561ACCFB43B29087BD2F2ABAD1BF00000000/items/000000004643FC50C0F14E8E855510C59A1492820100000005000000C93D7B2CD9C04E30B6FB3748DAE0C17000000000"

Returned JSON:
{
  "item": {
    "received": "2014-09-26 12:41:09",
    "flags": "orange",
    "importance": "normal",
    "text": "lal\r\n\r\n\r\n\r\n",
    "size": 3792,
    "id": "000000004643FC50C0F14E8E855510C59A1492820100000005000000C93D7B2CD9C04E30B6FB3748DAE0C17000000000",
    "sent": "2014-09-26 12:41:09",
    "subject": "another mail"
  }
}

The topmost GETs work just fine, only the last GET /folders/folder_id/items/item_id comes up with a blank {{outlet}}.

GET /folders/ => OK

GET /folders/folder_id => OK

GET /folders/folder_id/items => NOK

My index.html and app.js files can be found here:

http://jsbin.com/zevuca/1/

Thanks in advance for helping me, I’d appreciate it very very much if I could finally get this working!

Bumping this post in the hopes that someone out there will notice and can help me.

I get this error in the Console when trying to run your jsbin.

"error"

"ReferenceError: 'Ember' is undefined
  at Global code (http://null.jsbin.com/runner:82:14)"

I also tried to run it yesterday or Saturday and it failed then as well but I didn’t check the error.