# \_form.rhtml isn't being updated automatically

**URL:** <https://www.ruby-forum.com/t/form-rhtml-isnt-being-updated-automatically/109635>\
**Category:** Rails\
**Created:** [July 17, 2007, 2:22pm UTC](https://www.ruby-forum.com/t/form-rhtml-isnt-being-updated-automatically/109635 "2007-07-17T14:22:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [July 17, 2007, 2:22pm UTC](https://www.ruby-forum.com/t/form-rhtml-isnt-being-updated-automatically/109635/1 "2007-07-17T14:22:10Z")

</div>

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?

thanks

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.

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [July 18, 2007, 3:15am UTC](https://www.ruby-forum.com/t/form-rhtml-isnt-being-updated-automatically/109635/2 "2007-07-18T03:15:04Z")

</div>

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  
scaffolding…

Andrew

On Jul 17, 10:22 pm, Max W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
