title: Handlebars template to create a list in Backbone
body: <p>I am using Moustache as my templating for a Rails App that uses Backbone.js on the frontend. I am able to fetch the proper data but am struggling with getting it to populate my list. Here is the code...</p>
  
  <p>articles_router.js</p>
  
  <pre><code>Rssreader.Routers.Articles = Backbone.Router.extend({
    routes: {
      '': 'index',
      'articles/:id': 'show'
    },
  
    initialize: function(){
      this.collection = new Rssreader.Collections.Articles();
      this.collection.fetch();
    },
  
    index: function(){
      var model = new Rssreader.Models.Article({collection: this.collection});
      model.fetch({
        success: function(model){
          var view = new Rssreader.Views.ArticlesIndex({model: model});
          $('#articles').html(view.render().el);
          // console.log(view.render().el);
        }
      });
    }
  
  });
  </code></pre>
  
  <p>articles_index.js</p>
  
  <pre><code>Rssreader.Views.ArticlesIndex = Backbone.View.extend({
  
    template: JST['articles/index'],
  
    initialize: function(){
      this.render();
    },
  
    render: function(){
      this.$el.html( this.template(this.model.toJSON()) );
      console.log(this.model.toJSON({}));
      return this;
    }
  
  });
  </code></pre>
  
  <p>This is the model in article.js</p>
  
  <pre><code>Rssreader.Models.Article = Backbone.Model.extend({
    urlRoot: '/articles',
  
    defaults: {
      "name": "default name",
      "summary": "default summary",
      "url": "default url",
      "published_at": "default published date",
      "guid": "default guid"
    }
  });
  </code></pre>
  
  <p>And here is the template.</p>
  
  <pre><code>&lt;ul class="article_list"&gt;
    {{#articles}}
    &lt;li&gt;{{name}}&lt;/li&gt;
    {{/articles}}
  &lt;/ul&gt;
  </code></pre>
  
  <p>I have tried many iterations of this template and it does not seem to print anything. However I can console.log the data to be traversed just before I call the template so I know it has the data. </p>
  
  <p>Any suggestions?</p>