Chapter 10. Tracking state
This chapter covers
- Adding state to tickets and comments
- Using Active Record callbacks to trigger state changes
- Recording and displaying state transitions
- Securing specific model attributes elements against unauthorized modification
In a ticket-tracking application such as Ticketee, tickets arenât there to provide information about specific problems or suggestions; rather, theyâre there to provide the workflow for them.
The general workflow of a ticket starts when a user files the ticket; the ticket will be classified as a âNewâ ticket. When the developers of the project look at this ticket and decide to work on it, theyâll switch the state on the ticket to âopen,â and once theyâre done theyâll ...
Get Rails 4 in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.