Here is my router.js:
App.Router.map(function() {
this.resource('stores');
});
And the route of stores:
App.StoresRoute = Ember.Route.extend({
model: function() {
return [];
}
});
If I use {{#link-to 'stores'}}stores{{/link-to}}
, I can view stores page without error, but when I refresh the page under stores page, it will report Cannot GET /stores
, why does this happen?
How could I solve this issue?
Thanks.