backbone-generator/templates/collection.js.erb

5 lines
134 B
Plaintext

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