State Machine with Rails. Basics
State Machine comes to the rescue when models in your application need statuses and events. There is a state_machine gem for ruby. I recommend you to spend some time studying basics before you start using it with rails. Here is a nice tutorial
Post a comment