1
我有我的路由器为我的应用程序设置是这样的:路由与Ember问题
App.Router.map(function(){
this.resource('users', function() {
this.route('new');
});
});
然而,当我尝试并导航到/#用户,我收到错误消息
断言失败: URL“/users.index”没有匹配 任何路线您的应用程序
同样,当我尝试浏览到/#用户/新我得到
断言失败:URL '/users/new.index' 在应用程序中没有匹配的路由
我有以下的路线设置,以及:
App.UsersRoute = Ember.Route.extend({});
App.UsersNewRoute = Ember.Route.extend({});
我正在使用Ember 1.3.2
任何人有任何建议,为什么我收到这些错误?
谢谢。那确实是问题所在 – Rob