~/talk

Save Time with Custom Rails Generators

Talkat RailsConf 2024 · 2024-05-07..05-09· [ruby-on-rails]
slides:none on file

Shows how to build custom generators for Rails using generator templates, Thor hooks, and generator tests so routine scaffolding and boilerplate go from ten minutes to ten seconds — a 60x speedup — and are safe to run in CI. Walks through the test setup, the files generated, a reusable template repo, common speed bumps (naming collisions, idempotence, and migrations), and examples where team-wide adoption actually reduces manual edits and broken builds.

AI-written summary · about

  1. 0:00Introduction to Rails generators
  2. 12:21Why create custom generators
  3. 24:57Building your first generator
  4. 34:57Testing generators properly
  5. 43:58Advanced generator features
  6. 53:55Q&A and best practices
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.