backbone-generator/templates/collection.js.erb

5 lines
131 B
Plaintext

var <%= object_name %>sCollection = Backbone.Collection.extend({
url: '/<%= underscore_name %>',
model: <%= object_name %>
});