RE: [Rails] Newbie Q: Why does scaffolding create new on 'new'?

My question is - why does 'new' bother to create a new model object at

all? It's not used in the rhtml template, and a new model object is created as another new instance in 'create' anyway.<

Actually, the new model object is used in the _form.html template the scaffold generates. It's there as 'model' (not @model). The reason why is two-fold: 1) to present the user with a "blank" record (where "blank" may involve default values), and 2) so that both the create method and the update method work with records that have been automatically populated with field values.

That's my take, at least.

///ark