My understanding is that Ember 1.11.0 deprecated resource
in a router in favor of only using route
. Per what I've read, the difference between the two was that a resource
created a namespace. See: What is the difference between a route and resource in New Router API?
So the question is how do I namespace a route so that, in the example below, my comments Route, Controller, and View are not prefixed with 'Posts'?
App.Router.map(function() {
this.route("posts", { path: "/" }, function() {
this.route("new", { path: "/new" });
this.route("comments", { path: "/comments" }, function() {
this.route("new", { path: "/new" });
});
});
});