Workshops: Agentic Coding by Tech Stack

Ruby on Rails with AI Coding Agents: Hands-On Workshop

Convention over configuration is a gift for coding agents: when models, controllers and migrations live where Rails expects them, an agent finds its way quickly and writes code your team recognises. This workshop shows Rails teams how to turn that advantage into speed with Claude Code, OpenAI Codex, Cursor or GitHub Copilot, and how to make up for dynamic typing with tests, linters and security scanners.

Who is this workshop for?

  • Rails developers in product and SaaS teams
  • Teams maintaining large, long-lived Rails monoliths
  • Agencies and freelancers with several client Rails apps
  • Tech leads planning Rails or Ruby upgrades
  • Developers moving from older frontend stacks to Hotwire

What you will take away

  • Capture your Rails conventions, service object patterns and test commands in an instruction file, so agents follow your style instead of generic tutorials.
  • Use RSpec or Minitest, RuboCop and Brakeman as the feedback loop that replaces a compiler for the agent.
  • Generate safe database migrations and catch locking, backfill and N+1 risks before merging.
  • Build Hotwire features with Turbo and Stimulus, including system tests, with agent support.
  • Plan Rails upgrades in small, verifiable steps in which agents work through deprecation warnings and failing tests.

Agenda

  1. Module 1

    Rails as agent context

    • Why conventions make agents better and where your app deviates
    • CLAUDE.md or AGENTS.md for Rails: structure, patterns, commands
    • Rails console and runner: what the agent may run and against which database
  2. Module 2

    Feature work

    • Exercise: a feature from model to controller to view, tests first
    • Service objects, concerns and avoiding bloated models
    • Background jobs with Sidekiq or Solid Queue
  3. Module 3

    Quality without a compiler

    • RSpec or Minitest as the agent's main signal
    • RuboCop, Brakeman and optional typing with Sorbet or RBS
    • Detecting N+1 queries and slow scopes
  4. Module 4

    Migrations and data

    • Safe migrations on large tables: indexes, defaults, backfills
    • Seeds and factories instead of production data
    • Reviewing the schema changes an agent proposes
  5. Module 5

    Upgrades

    • Working through deprecation warnings and changelogs with the agent
    • Rails and Ruby version jumps, gem updates and dual booting
    • Keeping the test suite green throughout

Dynamic typing, strong conventions

Ruby gives an agent little static feedback: a typo in a method name only fails when that line runs, which makes good tests essential. In return, Rails conventions mean the agent rarely has to guess where code belongs. We show how to combine both: conventions for orientation, tests and linters for correctness.

Where agents get Rails wrong

Most of these are not mistakes the agent can detect on its own; they are team decisions. Write them down once and they disappear from every future review.

  • Patterns from different Rails generations mixed in one codebase
  • Callbacks and metaprogramming your team avoids on purpose
  • Migrations that lock large tables in production
  • Mass assignment and authorisation gaps that Brakeman or review must catch

Your app, your gems

We work on your Rails application or a sample app close to your setup, remotely or on-site, in English or German. On request, neooutput AI Code Engineers accompany your first upgrade sprint as follow-up coaching.

Frequently asked questions

Does this work with older Rails versions?

Yes. In older apps agents are especially useful for understanding code and preparing upgrades. We adapt the exercises to the Rails and Ruby versions you run.

Do agents understand our in-house gems and engines?

Only if they can read them. We show how to bring internal gems and Rails engines into the agent's workspace and document their purpose in the instruction file.

Should we adopt Sorbet or RBS for the agents' sake?

Not necessarily. Type signatures give agents extra feedback, but a strong test suite and RuboCop often deliver more for less effort. We discuss where gradual typing pays off in your codebase.

Workshop

Get in touch

What should your Rails team tackle first with agents: the new feature or the overdue upgrade?

Tell us roughly how many people will join and pick dates that work – we will get back to you within 24 hours with a proposal for content, format and schedule.

Prefer to talk first?

15 minutes, free and without obligation – with our AI Trainers and AI Code Engineers.

Book a call for free (opens in new tab) +49 761 519 751 50 (24/7)

Request a training / workshop

Workshop: Ruby on Rails with AI Coding Agents: Hands-On Workshop · 1 day

Dates that work for you (optional)

Suggestions about 2 weeks ahead – pick as many as you like

Reply usually within 24 hours · jocapps is ISO 27001 certified · Privacy