2 ms·
So does idiomatic modern rails not use generators? I believe the way to begin a new rails project is with the command "rails new {insert project name} ", which
by nanijoe 14y ago
So does idiomatic modern rails not use generators? I believe the way to begin a new rails project is with the command "rails new {insert project name} ", which umm....generates a ton of boilerplate code.
- nwienert 14y agoHe didn't say anything about generators, just boilerplate, which is what scaffolding does. Most other generators are quick, easy and don't generate boilerplate.
- bradleyland 14y agoThere's a bit of Rails terminology that you'll need to understand in order to grok what's going on here. Rails has two distinct commands: generate and scaffold. Generators create files with very basic contents. The scaffold command generates files with contents that fit a "typical" use case. Scaffolds aren't used much once you know what you're doing.