Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which State Machine plugin do you recommend for Rails? [closed]

I am looking for a relatively simple state machine plugin for a Rails 3 / Active Record project.

I've done a little research and come up with the following plugins:

  • Transitions: https://github.com/qoobaa/transitions
    • Extracted from old Active Record State Machine Library
  • Acts_As_State_Machine: https://github.com/aasm/aasm
  • Workflow: https://github.com/geekq/workflow
  • State Machine: https://github.com/pluginaweek/state_machine
  • State Flow: https://github.com/ryanza/stateflow

But they all seem very similar, so I am curious to know if anyone has had real-world experience with any of them.

Thanks!

like image 717
Adam Albrecht Avatar asked Jun 26 '11 23:06

Adam Albrecht


1 Answers

state_machine seems to be the one people say to use, at least who I've spoken to. It is environment agnostic, so you don't have to use one state machine in one part of your app, and a completely different one in another part of your app.

Update February 2015

State Machine is unfortunately no longer maintained and there are many issues, which makes it a less favourable choice. However, this fork of the project is actively maintained and appears to be stable.

like image 71
d11wtq Avatar answered Oct 24 '22 05:10

d11wtq