title: Backbone-relational.js + Backbone.View(s)
body: <p><strong>The question:</strong> The documentation is scarce, and I'm something of a noob -- can anyone confirm the proper (assuming there is one) way to bind Backbone.Views to instances of Backbone.RelationalModel (from backbone-relational.js) for updating/rendering to the dom?  I've tried a handful of different approaches, based on the normal Model/View binding in Backbone, with little success.</p>
  
  <p><strong>The backstory (/more info):</strong>
  I'm learning the ropes with Backbone.js, and have had to pick up a lot over the past week. If I'm missing something obvious (which is highly likely -- including the "right" way to handle my problem below), please call me out.</p>
  
  <p>I'm dealing with a mongodb-backed REST interface (that I don't have full control over -- or I would be re-architecting behavior on the server-side) that takes heavy advantage of nested dictionaries, so I've been reading up on how to best represent that in Backbone (while not breaking the great save() + server sync stuff that Backbone provides).</p>
  
  <p>I've seen two options: <a href="https://github.com/dvv/Backbone-relational" rel="nofollow">backbone-relational</a> and <a href="https://github.com/dbrady/ligament.js" rel="nofollow">ligament.js</a>.</p>
  
  <p>I've started with backbone-relational.js, and have RelationalModels (backbone-relational's replacement for Backbone's standard Model) created for the various dictionaries in the tree that gets handed back by REST interface. The relationships between them are defined, and console logging the JSON from each model (in their respective initialize functions) shows that they're all being called/loaded up correctly off the server on a fetch() command at the overall collection level.</p>
  
  <p>So, that's all great.</p>
  
  <p>Problem: I've got views "listening" for updates on each of those models (and bound functions that should render templates on the dom), and they never "fire" at all (let alone render...).  The main view fires on fetch(), no problem, loading the "top level" model and rendering it on the dom -- but the views that represent the "foreign key" models within that "top level" model never do (even though the data is DEFINITELY getting loaded into each model, as evidenced by the console logging on each model mentioned above).</p>
  
  <p>Any insights would be greatly, greatly appreciated.</p>
  
  <p><strong>In direct response to Raynos reply below (thanks Raynos!):</strong>
  If I defined a base url for the UpperLevelCollection with the UpperLevelModels existing at (UpperLevelCollection url)/(UpperLevelModel id) on the server, how would I map those LowerLevelCollections to dictionary keys within the one JSON dump for each UpperLevelModel from the server-side? In other words, could using collections within models properly handle a data dump from the server like this (obviously very simplified, but gets at the issue) AND properly save/update/sync it back?</p>
  
  <pre><code>[{
      "some_key": "Some string",
      "labels": ["A","List","Of","Strings"],
      "content": [{
          "id": "12345"
          "another_key": "Some string", 
          "list": ["A","list","of","strings"],
      },{
          "id": "67890"
          "another_key": "Some string", 
          "list": ["A","list","of","strings"],
      }],
  }]
  </code></pre>