İlgili yayınları saatler boyunca inceledim, ancak sahip olduğum sorunu düzeltmek için doğru cevabı bulamadım. Ben kontrolör şeyler yanlış kullanım olduğunu düşünüyorumEmber denetleyicisi: hiçbir şey eylemi ele almadı
Uncaught Error: Nothing handled the action 'edit'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.
ya da yanlış bir rotaya kadar köpüren:
hatasını almaya devam?
App.EventDetailsController = Ember.ObjectController.extend({
isEditing: false,
actions: {
edit: function() {
this.set('isEditing', true);
},
doneEditing: function() {
this.set('isEditing', false);
}
}
});
App = Ember.Application.create();
App.Router.map(function() {
// put your routes here
this.route('events', {path: '/events'});
this.route('createevent', {path: '/createevent'});
this.route('eventdetails', {path: ':eventdetails_id'});
});
App.EventsRoute = Ember.Route.extend({
model: function() {
return events;
}
});
App.EventDetailsRoute = Ember.Route.extend({
model: function(params) {
return events.findBy('id', params.eventdetails_id);
}
});
Bunun neden işe yaramayacağını bilen var mı?
Lütfen şablonu gösterin. –