Ember doesn't render template on route with underscore on name( replacing it with hyphen makes it work).
Ember inspector shows the proper current route, but it just doesn't get rendered.
this.route("levelone", function() {
this.route("level_two", {path: "level-two"});
});
I'm using Ember.js 1.12 stable.
The naming convention is to use dashes not underscores.
Yes, I quickly realized that. But a beginner wouldn't know that, since on the guides it's not said anywhere that you can't use underscores (just double checked the routing section), and failing silently doesn't help either.
30 minutes wasted on this issue, silent error, so impossible to find what's up. Glad i found this issue in the end. Solution: use dashes like stefanpenner stated.
Wow, I just got bitten by this one. Lost more than an hour trying to find what I had done wrong, but apparently Ember was just looking for a file named "learning-room", not "learning_room"?
After all, the underscore is fine in the path - why should it not be allowed in the route name, too?
Moved to guides repository for documentation.
Most helpful comment
30 minutes wasted on this issue, silent error, so impossible to find what's up. Glad i found this issue in the end. Solution: use dashes like stefanpenner stated.