Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
State Machine with Rails. Basics
by releu —
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