samedi 1 août 2015

Route is not found in EmberJS although route is specified in router.js

The problem is that the route is not being recognized in emberJS even though it specified in the router.js with the 'correct' format as seen on the emberJS documentation 1.13.0. This is what it looks like as of now:

this.route('business', {path: 'business'}, function(){
      this.route('dashboard', {path:'/dashboard/:business_name'})
  });

I have a route dashboard under routes/business which shows the following content:

export default Ember.Route.extend({
    model: function(){
        return this.store.find('business');
    }
});

Despite using the previous ways of generating new routes (successfully I might add), I don't know why it's giving me this error:

Uncaught Error: There is no route named Dashboard




Aucun commentaire:

Enregistrer un commentaire