generator-ember-plus
Version:
Yeoman generator for Ember with added functionality
11 lines (10 loc) • 320 B
JavaScript
<%= _.classify(appname) %>.Router.map(function () {
<% _.each(models, function(model, i) { %>
this.resource('<%= model.plural %>', function(){
this.resource('<%= model.single %>', { path: '/:<%= model.single %>_id' }, function(){
this.route('edit');
});
this.route('create');
});
<% }); %>
});