I've created a simple test in which I try to use connectOutlet. However, not much is rendered. Here is my test code: http://jsfiddle.net/jeanluca/53dpA/
Just to summarize the application. I think the problems is inside the following code
App.Router.map(function(match) {
match('/').to('index');
});
App.IndexRoute = Em.Route.extend({
connectOutlets: function(router) {
router.get('applicationController').connectOutlet('sidebar', 'navigation');
router.get('applicationController').connectOutlet('content');
}
});
Any suggestions what is wrong with this code ?
Also, in almost any example code I find on the web, I see that the App.Router is defined
App.Router = Em.Router.extend({
enableLogging: true,
root: Em.Route.extend({
index: Em.Route.extend({
route: '/',
connectOutlets: function(router) {
.... etc ....
Because with ember-latest App.Router is already defined, I assume this is the old way of defining the Router ?