Ruby Rogues cover image

Generators: Rails' Unknown Power Feature - RUBY 602

Ruby Rogues

00:00

How to Use Ruby on Rails to Create and Modify Files

The primary command there is template and it looks in the generators templates folder. ERB gives you access to a whole plethora of inflections for the class names, the file names. You can run git commands via Ruby and the generator. There's even a fixture file name. And so then you have all of these actions template. Some are provided from Thor and some are rail specific, right? So you can insert gems into the gem file. One command can recreate a whole directory.

Play episode from 25:57
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app