Skip to content

Cookbook

Real apps do not stop at “define a task and call work.” They need jobs, databases, auth, rate limits, and traces that make sense at 2 a.m.

These recipes are copy-paste starting points for wiring CMDx into a Rails app. Each page stands on its own — open the one closest to what you are building today.

How each recipe is laid out

Most pages follow the same rhythm so you can skim:

  1. Intro — what problem this solves and when to reach for it
  2. Setup — middleware, initializer, or helper you install once
  3. Usage — register it on a task and run an example
  4. What to expect — sample SQL, JSON, or Result shapes (when it helps)
  5. Notes — gotchas and “pick this vs that” tips

Rails and Active Record

API and integration

Cross-cutting concerns