Forum: Ruby on Rails _form.rhtml isn't being updated automatically

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Max W. (Guest)
on 2007-07-17 16:22
I have a problem with a new rails program i've just started.

I have a list page for my DB table, and all the CRUD stuff is working
fine, except that the 'new' and 'edit' pages don't have all the form
components they should have:  my db table has fields "id, title, url,
added_at", and these are all listed on the list page.  However, the
'new' has only a text field for title, and nothing for "url".

When i've done this before (just with tutorials, i'm a rails noob), a
change to the DB was instantly reflected in the 'new' page, ie the
"_form.rhtml" page was automatically modified.  This isn't happening now
though.  Does anyone know why?


By the way, i just checked and if i re-generate the scaffold then the
right boxes appear.  I shouldn't have to do this though should i?  When
i worked through the tutorial (DHH's weblog movie) then DB changes were
represented instantly in the form.
askegg (Guest)
on 2007-07-18 05:15
(Received via mailing list)
Scaffolding in the Controller (:scaffold) looks at the DB tables on
the fly and constructs the index, show and edit forms based on the
columns found.  If you generate the scaffolding code (./script/
generate scaffold) it writes the current information into the files
within the project, so any updates to the DB  will not be reflected.

At least that's my recollection.  You quickly out grow


On Jul 17, 10:22 pm, Max W. <removed_email_address@domain.invalid>
This topic is locked and can not be replied to.