Rachael Wright-Munn

Rachael Wright-Munn

@ChaelCodes

Rachael has been livestreaming open-source contributions and programming games on Twitch since 2019. This journey led her to voice-acting in indie programming game, One Dreamer, joining the RubyEvents.org team, and contributing to Rails, forem, GitLab, Ruby For Good, and many other projects.

Custom Rails Generators in RubyEvents

At RubyEvents.org, we generate a lot of YAML. Contributors need an easy, idiomatic way to generate event files to the latest standards in an unfamiliar codebase. AI needs to generate files from unstructured data without drifting. These feel like different problems, but custom Rails generators can solve both.

Rails generators power rails generate — a built-in tool for creating and modifying files from the command line. Custom generators feel natural for anyone familiar with Rails and allow you to extend Rails’ conventions with your own.

This will be a deep dive into how to build a custom generator — templates, mutating files, testing, and everything we learned the hard way at RubyEvents.