~/talk

Save Time with Custom Rails Generators

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

Shows how to write Rails generators that actually create files, add routes, run migrations and push matching tests so recurring tasks go from ten-minute to ten-second across a team. Demonstrates generator APIs, Thor usage, template partials, and test harnesses that assert file contents and idempotence, with metrics like 10x fewer manual steps and examples of generators that did and did not survive CI. Covers common speed bumps: naming collisions, idempotent templates, and rollback behavior.

AI-written summary · about

  1. 0:00Introduction
  2. 2:59Why use custom generators
  3. 17:57Creating your first generator
  4. 28:34Generator templates and files
  5. 37:30Testing generators
  6. 47:14Advanced generator features
  7. 56:09Conclusion and Q&A
~/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.