# Scaffold usage

**URL:** <https://www.ruby-forum.com/t/scaffold-usage/141836>\
**Category:** Rails\
**Created:** [June 30, 2008, 11:51pm UTC](https://www.ruby-forum.com/t/scaffold-usage/141836 "2008-06-30T23:51:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lnramirez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/d78d45/32.png) [@lnramirez](https://www.ruby-forum.com/u/lnramirez)\
**Post date:** [June 30, 2008, 11:51pm UTC](https://www.ruby-forum.com/t/scaffold-usage/141836/1 "2008-06-30T23:51:26Z")

</div>

is there anyway that scaffold would read the database and I don’t have  
to specify any of the columns? it is really frustraiting specially when  
you’ve got a lotta cols and tables! I’d like to use rails for an  
enterprise app but not a toy app like all those apps in tutorials

---

<div class="post-metadata">

**Author:** ![lnramirez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/d78d45/32.png) [@lnramirez](https://www.ruby-forum.com/u/lnramirez)\
**Post date:** [July 1, 2008, 12:05am UTC](https://www.ruby-forum.com/t/scaffold-usage/141836/2 "2008-07-01T00:05:10Z")

</div>

On Mon, Jun 30, 2008 at 4:51 PM, Luis R.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> is there anyway that scaffold would read the database and I don’t have  
> to specify any of the columns? it is really frustraiting specially when  
> you’ve got a lotta cols and tables! I’d like to use rails for an  
> enterprise app but not a toy app like all those apps in tutorials

Enterprise apps don’t usually use scaffolds.

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)

---

<div class="post-metadata">

**Author:** ![lnramirez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/d78d45/32.png) [@lnramirez](https://www.ruby-forum.com/u/lnramirez)\
**Post date:** [July 1, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/scaffold-usage/141836/3 "2008-07-01T15:35:35Z")

</div>

Luis,  
I use the scaffold for ALL projects and don’t have a problem with the  
fields as I use DBDesigner to create my schemas before I go into  
production. This free tool allows me to copy all fields in a table to  
my clipboard. Then in the Netbeans 6.1 scaffold call I simply paste  
the fields in and then decide the types ( ex: :integer, :string: ).  
Hope this helps.  
Kathleen

---

<div class="post-metadata">

**Author:** ![lnramirez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/d78d45/32.png) [@lnramirez](https://www.ruby-forum.com/u/lnramirez)\
**Post date:** [July 1, 2008, 2:42pm UTC](https://www.ruby-forum.com/t/scaffold-usage/141836/4 "2008-07-01T14:42:44Z")

</div>

Scaffolds will give you forms and indexes for all columns in the  
database. This is a bit of overhead since you are going to have to  
delete plenty of code one you use your scaffolds since ALL columns  
will be listed in the index and ALL columns will be editable in the  
forms. i have never seen a project that desires such functionality.  
Thats why i agree with Greg.

ps: What is the difference between enterprise rails apps and tutorial  
toys, apart from the number of columns…??

On Jun 30, 10:51 pm, Luis R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
