Skip to main content

State Machines

aasm

Recommended

AASM is a continuation of the acts-as-state-machine rails plugin, built for plain Ruby objects.

aasm 6,063,865 Downloads Last release

aasm/aasm Last commit

workflow

Workflow is a finite-state-machine-inspired API for modeling and interacting with what we tend to refer to as 'workflow'. * nice DSL to describe your states, events and transitions * robust integration with ActiveRecord and non relational data stores * various hooks for single transitions, entering state etc. * convenient access to the workflow specification: list states, possible events for particular state

workflow 1,003,199 Downloads Last release

micromachine

There are many finite state machine implementations for Ruby, and they all provide a nice DSL for declaring events, exceptions, callbacks, and all kinds of niceties in general. But if all you want is a finite state machine, look no further: this has less than 50 lines of code and provides everything a finite state machine must have, and nothing more.

micromachine 944,432 Downloads Last release

soveran/micromachine Last commit

Subscribe to the newsletter

Join 18,000+ developers who get early access to new screencasts, articles, guides, updates, and more.

By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

More of a social being? We're also on Twitter and YouTube.