I looked at related messages for several hours, but could not find the right answer to fix the problem I was facing.
I keep getting the error:
Unused error: nothing processed the "edit" action. If you performed an action, this error may be caused by the return of truth from the action handler in the controller, as a result of which the action will bubble.
I think the controller is malfunctioning, or is it bubbling up to the wrong route?
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); } });
Does anyone know why this will not work?
source share