Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller (with no corresponding Route) in sub directory cannot be found #37

Closed
herom opened this issue Mar 27, 2014 · 2 comments
Closed

Comments

@herom
Copy link

herom commented Mar 27, 2014

I have a controller which is an "orphaned" controller (means: no existing corresponding route) which is called NotificationCollectionController. The controller is placed under app/controllers/notification/collection.js which seems legit to me (please correct my if I'm wrong) and it cannot be found, causing the following error message if I try to get a grip on it by calling this.controllerFor from my ApplicationRoute:

"Assertion Failed: The controller named 'notificationCollection' could not be found. Make sure that this route exists and has already been entered at least once. If you are accessing a controller not associated with a route, make sure the controller class is explicitly defined."

If I rename the file to notification-collection.js and move it up a folder, so that it's placed under app/controllers/notification-collection.js it is found... is this expected behaviour?

@stefanpenner
Copy link
Contributor

not resolver related

@abobwhite
Copy link

I am having this problem as well. It may not be resolver related but is this answered somewhere? I am converting my app to ember-cli and seeing this problem and not understanding what the problem is.

kratiahuja pushed a commit to kratiahuja/ember-resolver that referenced this issue Aug 5, 2016
Tweak error message, actually test it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants