为什么 'application' 在 Ember 的子路径中不工作?

Why is 'application' not working in a subroute in Ember?

我正在开发一个 Ember 前端,它必须处理 'application' 资源。 我的路由器看起来像这样:

this.route('applications', function() {
   this.route('application', { path: ':application_id'}
   );
);

我收到以下错误:

断言失败:'application' 不能用作路由名称。

这似乎与 Ember 应用程序的 'application' 路由冲突。

将路由名称从 'applications/application' 更改为 'applications/app' 可行,但这不是很优雅。

有人知道 if/why 子路径永远不能是 '.../application/...' 吗?[​​=13=]

谢谢!

我想这与 application 是 EmberJS 中整个应用程序的顶级路由这一事实有关。它是框架中的保留关键字,只能用于 EmberJS 规定的用途。