My First State Machine in Rails How OutfitMaker's outfit suggestion flow evolved from nested if/else into a proper state machine. The gem, the gotchas, and why it clarified everything. April 3, 2026 railsstate-machinesarchitecture