Reputation: 44491
I get this error:
Uncaught Error: assertion failed: You are looking for a edit controller in the Node namespace, but the namespace could not be found
But if I inspect the objects (Chrome developer tools), I confirm that:
App.NodeEditController
is definedEmber.TEMPLATES['node/edit']
is defined (I am using pre-compiled templates)App.Node
is definedWhat could be causing this problem? What else could I verify? What is this namespace thing? I have not used it before, and my application was working.
The only changes I have performed are related to reorganization of my code base: I have split templates/controllers/models/views into files - but they are concatenatted again with a grunt
task, so that no real changes should be present (appart from the fact that I am using now pre-compiled templates)
I have also verified SettingsApp.Router.router.recognizer.names
:
Upvotes: 1
Views: 745
Reputation: 23322
this solves the problem, at least you can navigate to the edit route again
change this:
SettingsApp.NodeController = Ember.ObjectController.extend({
isEditing: false,
needs: [node/edit]
...
to this (remove the needs)
SettingsApp.NodeController = Ember.ObjectController.extend({
isEditing: false
...
hope it helps ...
Upvotes: 1