Ember log messages


#1
[ ] controller:provider/invitations/new ................ test/provider/invitations/new/controller  
[ ] controller:provider/invitations/new ................ test/controllers/service_provider/invitations/new 
[✓] controller:provider/invitations/new ................ test/controllers/service_provider/invitations/new  
[✓] controller:provider/invitations/new ................ test/controllers/service_provider/invitations/new

I guess above log messages mean that ember resolver was able to resolve my controller. Is that correct ? I am asking because of the following log messages. Somehow ember resolver is not able to recognize my route and I do not know the reason.

[ ] route:provider/invitations/new ..................... test/provider/invitations/new/route 
[ ] route:provider/invitations/new ..................... undefined 
[ ] route:provider/invitations/new ..................... test/routes/provider/invitations/new   
[ ] route:provider/invitations/new ..................... test/provider/invitations/new/route   
[ ] route:provider/invitations/new ..................... undefined 
[ ] route:provider/invitations/new ..................... test/routes/provider/invitations/new   
[ ] route:provider/invitations/new ..................... test/provider/invitations/new/route   
[ ] route:provider/invitations/new ..................... undefined 
[ ] route:provider/invitations/new ..................... test/routes/provider/invitations/new  
[ ] route:provider/invitations/new ..................... test/provider/invitations/new/route   
[ ] route:provider/invitations/new ..................... undefined 
[ ] route:provider/invitations/new ..................... test/routes/provider/invitations/new

My router.js looks following:

this.resource('provider', function () { 
  this.resource ('provider.invitations', { path: '/invitations' }, 
                          function () { this.route('new');
                 } );
} );

I use ember-cli v 0.0.39. My directory structure looks the following :

app/test/routes/invitations/new.js app/test/controllers/provider/invitations/new.js


#2

Try changing “provider.invitations” to “invitations”


#3

I tried that. I changed the templates and also directory structure accordingly. But with all those changes route was being aborted and nothing was being rendered on to the screen.


#4

Haven’t had a chance to use ember-cli yet but looking at your code I would change the router.js to the following:

this.resource('provider', function () { 
    this.resource ('invitations', { path: '/invitations' }, function () { 
        this.route('new');
    });
});

The corresponding files:

routes/provider.js
routes/provider/invitations.js
routes/provider/invitations/new.js