# Any way to generate scaffold controller from existing model?

**URL:** <https://www.ruby-forum.com/t/any-way-to-generate-scaffold-controller-from-existing-model/130182>\
**Category:** Rails\
**Created:** [February 26, 2008, 5:09am UTC](https://www.ruby-forum.com/t/any-way-to-generate-scaffold-controller-from-existing-model/130182 "2008-02-26T05:09:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dino\_d](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b5ac83/32.png) [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Post date:** [February 26, 2008, 5:09am UTC](https://www.ruby-forum.com/t/any-way-to-generate-scaffold-controller-from-existing-model/130182/1 "2008-02-26T05:09:37Z")

</div>

hi-

i’m sure this is a FAQ, but can’t find an answer. i’ve already  
developed the model and migration, can i generate controller and views  
(forms) scaffolding that looks into the table and picks out the fields  
automatically?

thanks,  
dino

---

<div class="post-metadata">

**Author:** ![dino\_d](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b5ac83/32.png) [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Post date:** [February 26, 2008, 7:47am UTC](https://www.ruby-forum.com/t/any-way-to-generate-scaffold-controller-from-existing-model/130182/2 "2008-02-26T07:47:55Z")

</div>

not anymore. It’s been removed from Rails 2.0.

However, I made a generator that handles the creation of the forms,  
which is  
the part that people really care about. It’ll generate the new and edit  
forms. It won’t build you a controller, but the code to create / update  
records is simple enough.

[http://www.napcsweb.com/blog/2007/11/04/scaffoldform-generator/](http://www.napcsweb.com/blog/2007/11/04/scaffoldform-generator/)
