title: Backbone.js - getting json data into view
body: <pre><code>User = Backbone.Model.extend({
    urlRoot: "users",
  
    initialize: function(){
      this.fetch();
    }
  });
  
    var HomeView = Backbone.View.extend({
      el: '#container',
      template: _.template($("#home-template").html(), this.model),
  
      render: function() {
        $(this.el).html(this.template);
        return this;
      }
    });
  
    var App = Backbone.Router.extend({
        routes: {
  
            '/home':       'home',
        },
  
        home: function() {
          var user = new User({id: 1});
          homeView = new HomeView({
            model: user
          });
          this.homeView.render();
        }
      });
  </code></pre>
  
  <p>for some reason I can't get the model data to be injects into the template for HomeView. I see the ajax request being sent off and the data coming back is correct. I put static data in the same place when calling the view and it worked fine. </p>
  
  <p>Any suggestions?</p>