Accessing Ember-CLI Nested Controllers
This is my directory structure: controllers/ ---- restaurant/ ----items.js ---- index.js ---- restaurant.js And my router declaration: this.route("restaurants",{ path: "/restaurants" }); this.resource("restaurant", { path: "/restaurants/:restaurant_id" }, function() { this.resource("items", { path: "/items" }); }); My Items controller (located in restaurants/items.js) begins with the following: export default Ember.ObjectController.extend({ needs: ["restaurant"], restaurant: Ember.computed.alias('controllers.restaurant.model') and is then followed by an action to add the item under hte