# Create form from db

**URL:** <https://www.ruby-forum.com/t/create-form-from-db/88742>\
**Category:** Rails\
**Created:** [March 14, 2007, 12:07am UTC](https://www.ruby-forum.com/t/create-form-from-db/88742 "2007-03-14T00:07:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bryce](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/8edcca/32.png) [@Bryce](https://www.ruby-forum.com/u/Bryce)\
**Post date:** [March 14, 2007, 12:07am UTC](https://www.ruby-forum.com/t/create-form-from-db/88742/1 "2007-03-14T00:07:00Z")

</div>

I think I have a rather simple question:

I generate forms rather regularly. I would like to make the process as  
efficient as possible and would rather generate the markup from the  
database much like script/generate scaffold does. My question is  
this: is there a rake task or something that will take the schema of a  
db as input and create a \_table.rhtml file?

Thanks in advance,

Bryce

---

<div class="post-metadata">

**Author:** ![Bryce](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/8edcca/32.png) [@Bryce](https://www.ruby-forum.com/u/Bryce)\
**Post date:** [March 14, 2007, 11:19pm UTC](https://www.ruby-forum.com/t/create-form-from-db/88742/2 "2007-03-14T23:19:31Z")

</div>

Why not just use scaffolding?

– Wes

---

<div class="post-metadata">

**Author:** ![Bryce](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/8edcca/32.png) [@Bryce](https://www.ruby-forum.com/u/Bryce)\
**Post date:** [March 15, 2007, 11:40pm UTC](https://www.ruby-forum.com/t/create-form-from-db/88742/3 "2007-03-15T23:40:52Z")

</div>

I’d rather not because I don’t want a new controller generated and  
would like to control the name of \_form

Bryce
