Please sign in to comment.
Delete a Movie with Backbone
When a Movie is deleted, we want to clean up both the list and detail views. A view first hides and then removes itself from the DOM. We also want the view to clean up after itself - this app only uses the basic Backbone.View events, more complex apps will probably need to use the unbind method to undo complex bindings (to Backbone objects, jQuery, etc).
- Loading branch information...
Showing with 34 additions and 4 deletions.
- +3 −3 app/controllers/movies_controller.rb