codebrew/backbone-rails — Issue #77: Instance Data and Backbone-Rails
Author: dgdosen
Created: 2011-12-12 18:14:41+00:00
State: open

I created an app with backbone-rails scaffolding and am looking into more detail about how an app build using backbone-rails is structured.

Say I load a page of data from a URL on the server. I want to be able to debug the state of my application once the page is loaded. I can see populated views on the screen, but I can't, however, see where that instance data is. I can see option data under my application object, but that's just raw deserialzed data. I'd expect to see instance data of the app available for me to see in the console.

I can see how that collection data gets created by passing in option data to a router - but I can't see that router instance once the page is loaded.

Is there a best practice for creating that using the backbone-rails gem?

Thanks for any guidance!