Writing Models - Actions in Views and Reports
Both views and reports can have actions that allow the user to change instances of a model. First, we will add an Update action for the Book model, and then we will create a couple states in the state machine. Then we will be able to use the action in both a view and a report.