
Generators: Rails' Unknown Power Feature - RUBY 602
Ruby Rogues
00:00
Rails Generators: A Guide to Generate a Generator
The most tedious part of the book that I started writing and I almost regret it is I'm building the example is a custom generator generator. And so I use the rails custom generator or the rails built in generator generator to generate the initial generator. You can see how it gets very circular. Right. So that said, the nice thing is rails has a built in generator Generator. It gives you mostly the files and the directory structure for your generator. But it doesn't really write much beyond that. The default parent class is rails generators named base. That inherits from rail generators base but includes a name argument. right? They don't need a keyword. There are other little undocumented works where
Play episode from 22:13
Transcript


