So I created a rails api using rails-api gem. And I put my backbone code in the default public/index.html. I tried the json link and returns json, it's just a model called 'entry' with a single field called 'content' along with some default rails fields. But the backbone code doesn't work, could you spot any problem with this? I am just trying to show the list of records from the returned json.
// Models window.Entry = Backbone.Model.extend(); window.EntryCollection = Backbone.Collection.extend({ model:Entry, url:"http://localhost:3000/entries" }); // Views window.EntryListView = Backbone.View.extend({ tagName:'ul', initialize:function () { this.model.bind("reset", this.render, this); }, render:function (eventName) { _.each(this.model.models, function (entry) { $(this.el).append("