How to display Backbone nested attribute using Eco?
问题 I've followed Ryan Bates' example on Backbone.js to start a project using Backbone + Eco. It's great. However, I'm stuck trying to display a nested attribute. For example, I'm trying to do this: <%= @stream.user.get('name') %> in index.jst.eco and I'm getting Uncaught TypeError: Cannot call method 'get' of undefined However, I can get <%= @stream.get('stream_type') %> to work. Here's the REST API data: [ : { : : "id":"5004095283de4ca9ff000005", : : "created_at":"2012-07-16T12:30:10Z", : :