see rails guide for the explanation
Rails scaffolding is a quick way to
generate some of the major pieces of
an application. If you want to create
the models, views, and controllers for
a new resource in a single operation,
scaffolding is the tool for the job.