Skip to Content
Rails 4 in Action
book

Rails 4 in Action

by Yehuda Katz, Rebecca Skinner, Stephen Klabnik, Ryan Bigg
August 2015
Intermediate to advanced content levelIntermediate to advanced
576 pages
18h 13m
English
Manning Publications
Content preview from Rails 4 in Action

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 mark it as “resolved.” ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Rails Crash Course

Rails Crash Course

Anthony Lewis

Publisher Resources

ISBN: 9781617291098Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link