State Machines

aasm Recommended

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

aasm 24,647,538 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 * various hooks for single transitions, entering state etc. * convenient access to the workflow specification: list states, possible events for particular state

workflow 2,232,600 Downloads Last release

geekq/workflow

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 1,831,546 Downloads Last release

soveran/micromachine Last commit

Want to stay up-to-date with Ruby on Rails?

Join 66,029+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2022 GoRails, LLC. All rights reserved.