# Auto generated views for existing model

**URL:** <https://www.ruby-forum.com/t/auto-generated-views-for-existing-model/139007>\
**Category:** Rails\
**Created:** [May 29, 2008, 9:38pm UTC](https://www.ruby-forum.com/t/auto-generated-views-for-existing-model/139007 "2008-05-29T21:38:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gwgeller](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/db5fbb/32.png) [@gwgeller](https://www.ruby-forum.com/u/gwgeller)\
**Post date:** [May 29, 2008, 9:38pm UTC](https://www.ruby-forum.com/t/auto-generated-views-for-existing-model/139007/1 "2008-05-29T21:38:36Z")

</div>

Hello,  
I have a customer table that has quite a few fields. Most consist  
of billing and shipping address fields. I’d like to scaffold or  
generate the views for this table, but the only way I know how would  
be to create the model using the scaffold command (rails 2.0) and  
specifying each field. There are at least 30 fields so my command line  
is going to fill up fast. Ideally I’d like to create the table in the  
db without rails, it would use the rails name conventions and all that  
good stuff. Then I’d create the model to link to the table. Lastly I’d  
like to generate the view for the customer that would magically put  
all the fields in a form for me. Does anyone know if this is possible?  
Thanks,  
Gunner
