Tak jak můžeme generovat soubory modelu, řadiče a pohledu. Tak můžeme všechno vygenerovat najednou jedním generátorem scaffold
.
script/generate scaffold ModelName [ControllerName] [action, …]
$
script/generate Pracovnikexists app/controllers/ exists app/helpers/ create app/views/pracovnici exists test/functional/ dependency model exists app/models/ exists test/unit/ exists test/fixtures/ skip app/models/pracovnik.rb identical test/unit/pracovnik_test.rb identical test/fixtures/pracovnici.yml create app/views/pracovnici/_form.rhtml create app/views/pracovnici/list.rhtml create app/views/pracovnici/show.rhtml create app/views/pracovnici/new.rhtml create app/views/pracovnici/edit.rhtml create app/controllers/pracovnici_controller.rb create test/functional/pracovnici_controller_test.rb create app/helpers/pracovnici_helper.rb create app/views/layouts/pracovnici.rhtml identical public/stylesheets/scaffold.css